I'm trying to implement Instabug (crash analytics) into my android flutter app, and I'm confused as to where I should input this code into my project.
Initialize Instabug in the onCreate() method of your Application subclass:
Image of the step from instabug
Where is the onCreate() method for the Application subclass in a flutter package? And if I need to create one, where would I make it?
In the flutter app root,
Follow
android/app/src/main/kotlin/your package/, then you'll seeMainActivity.Just create a class which is inherits from
FlutterApplicationin same path ofMainActivityThen go to Manifest,
android/app/src/main/kotlin/your package/AndroidManifest.xml, and modify application section