question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Documentation] Capacitor 3 - Use Automatic Android Plugin Loading

See original GitHub issue

Sentry’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:closed
  • Created a year ago
  • Reactions:2
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
piotr-czcommented, Jun 3, 2022

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.

0reactions
lucas-zimermancommented, Sep 20, 2022

Closed as documented at Sentry Docs.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found