Configure AndroidManifest.xml
Open
android/app/src/main/AndroidManifest.xml and add the INTERNET permission and set launchMode to singleInstance on your MainActivity.Add ProGuard rules
Add the following rule to your
android/app/proguard-rules.pro file to prevent key obfuscation from stripping plugin internals:ProGuard rules are required when building a release APK or App Bundle. Without this rule, obfuscation may remove or rename classes used by the plugin, causing runtime crashes.
Request notification permission (Android 13+)
On Android 13 (API 33) and above, you must request the
POST_NOTIFICATIONS permission before calling showCallkitIncoming. Use requestNotificationPermission to prompt the user:You can also use the
requestPermission method from firebase_messaging if your project already integrates Firebase Cloud Messaging.Request full-screen intent permission (Android 14+)
Starting with Android 14 (API 34), apps must explicitly hold the
USE_FULL_SCREEN_INTENT permission to display non-dismissable full-screen notifications. Use the following APIs to check and request the permission:Ensure Java SDK 17 or higher
Version 2.5.0 and later of this plugin require Java SDK 17 or higher. Verify your Android project is configured to use a compatible JDK.In your
android/app/build.gradle, confirm that the compile options target Java 17:If you are using Android Studio, you can verify and change the JDK version under Settings → Build, Execution, Deployment → Build Tools → Gradle → Gradle JDK.
