discuss: Android catches all plugin exceptions and logs message while iOS allows them to crash the app. Should they be made to work the same across platforms? #2150
Labels
enhancement
needs discussion
decisions must be made before working on it
platform: android
priority: high
Milestone
In trying to create a plugin for Firebase Crashlytics, it seems that
@capacitor/ios
allows exceptions within a plugin method to bubble all the way up and crash the app and@capacitor/android
catches all exceptions and logs a simple message. Android code is here and here.To me, the Android implementation seems like it could hide problems within the plugin, never to be seen or reported by tools like Crashlytics. While good intentioned, this seems like a bad idea overall.
Would the Capacitor team welcome PRs that remove the exception catching logic from the android platform?
The text was updated successfully, but these errors were encountered: