doneservices / flutter_callkeep

iOS CallKit and Android ConnectionService bindings for Flutter
58 stars 41 forks source link

Android 14 - One of RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED should be specified #66

Closed piyush-applore closed 4 months ago

piyush-applore commented 5 months ago

I am getting this error on Android 14 device when I click on incoming call to make it full screen.

E/AndroidRuntime( 2686): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.buddy.dev/co.doneservices.callkeep.IncomingCallActivity}: java.lang.SecurityException: com.buddy.dev: One of RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED should be specified when a receiver isn't being registered exclusively for system broadcasts E/AndroidRuntime( 2686): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4164) E/AndroidRuntime( 2686): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4322) E/AndroidRuntime( 2686): at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103) E/AndroidRuntime( 2686): at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:139) E/AndroidRuntime( 2686): at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:96) E/AndroidRuntime( 2686): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2685) E/AndroidRuntime( 2686): at android.os.Handler.dispatchMessage(Handler.java:106) E/AndroidRuntime( 2686): at android.os.Looper.loopOnce(Looper.java:230) E/AndroidRuntime( 2686): at android.os.Looper.loop(Looper.java:319) E/AndroidRuntime( 2686): at android.app.ActivityThread.main(ActivityThread.java:8918) E/AndroidRuntime( 2686): at java.lang.reflect.Method.invoke(Native Method) E/AndroidRuntime( 2686): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:608) E/AndroidRuntime( 2686): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103)

yashodhankillekar commented 5 months ago

@piyush-applore

I have created a PR for this issue. check this out https://github.com/doneservices/flutter_callkeep/pull/67

Ayman-Barghout commented 4 months ago

Fixed in latest release 1.0.0, which includes API updates. A migration guide can be added if needed but README and the example were updated to reflect the new changes and how to use it.