Closed ashish-live closed 2 weeks ago
According to the documentation, Intercom must be initialized in the Application onCreate. Otherwise it throws the following error:
Caused by io.intercom.android.sdk.exceptions.IntercomIntegrationException
Intercom was not initialized correctly, Intercom.initialize() needs to be called in onCreate() in your Application class.
Any specific reason why do we need to initialize it from MainActivity.kt in Android as we are already initializing this in our main.dart?
IntercomFlutterPlugin.initSdk(this, appId = "appId", androidApiKey = "androidApiKey")