[Documentation] Capacitor 3 - Use Automatic Android Plugin Loading
See original GitHub issueSentry’s documentation for setting up capacitor projects is a bit outdated for Capacitor 3.
As seen here, Capacitor officially recommends using automatic plugin loading on android. I bumped into a couple issues when using the provided add(SentryCapacitor.class)
approach where then a few other plugins no longer worked. Switching to the registerPlugin
approach fixed this for me.
This callout may be worth adding to your docs, as Cap2 vs Cap3 setup.
Issue Analytics
- State:
- Created a year ago
- Reactions:2
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Updating to 3.0 | Capacitor Documentation
In Capacitor 3, it is preferred to automatically load the Android plugins. In MainActivity.java , the onCreate method can be removed. You no...
Read more >Capacitor 3.0 Upgrade Plugins "not implemented" Exception ...
Capacitor 3 allows android plugins to auto register, but for that you need to remove the init method from MainActivity.java, if it's there ......
Read more >How to Use Capacitor Plugins: Core & Others - Ionic.io
Learn how to use Capacitor Core Plugins as well as those made by the community. These allow portals to use native functionality with...
Read more >Documentation - Capacitor Plugin - Radar
npm install --save capacitor-radar Then, update dependencies: · npx cap sync If successful, you will see: · ✓ Updating Android plugins · import...
Read more >How to AUTOMATICALLY configure your Capacitor project ⚡️
We take an early look at the new Capacitor configuration tool called Capacitor configure which allows us to directly change native ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It’s definitely worth checking, I don’t register other capacitor v3 plugins either.
The Capacitor > Custom Native Android Code docs mention that using
registerPlugin
method is required for custom plugins. Might be that Capacitor plugins installed via npm are auto-registered by Capacitor.Closed as documented at Sentry Docs.