[Problem/Question]
Not able to receive incoming call notification when the app is in background/kill state in android 15 & 16. Getting the security exception tried with the my own app and the sendbird android github sample repo ( quickstart-calls-directcall-android → Sendbird Calls for Android Quickstart ) as well., the issue log is as below.
Caused by: java.lang.SecurityException: Starting FGS with type microphone callerApp=ProcessRecord{f6c6629 11179:com.sendbird.calls.quickstart/u0a481} targetSDK=35 requires permissions: all of the permissions allOf=true [android.permission.FOREGROUND_SERVICE_MICROPHONE] any of the permissions allOf=false [android.permission.CAPTURE_AUDIO_HOTWORD, android.permission.CAPTURE_AUDIO_OUTPUT, android.permission.CAPTURE_MEDIA_OUTPUT, android.permission.CAPTURE_TUNER_AUDIO_INPUT, android.permission.CAPTURE_VOICE_COMMUNICATION_OUTPUT, android.permission.RECORD_AUDIO] and the app must be in the eligible state/exemptions to access the foreground only permission.
[SDK Version]
com.sendbird.sdk:sendbird-calls:1.12.3
[Reproduction Steps]
Run the app (github sample app) in two devices.
Login with different users in each of devices.
Minimize/kill the app from one device and make call from other device (Android Version should be 15 or above in receiving device).
Expected behavior → Calling notification should be shown with accept/Declined buttons.
Current behavior → No notification are appears, if you check the log inside android studio then you can see the above error log which I’ve shared the above.
I providing the reference of sendbird call android sample app as the same issue is with my project too.
[Frequency]
Every time when the app is in background/Kill state.
[Current impact]
If the user minimize or kill the app then not able to receive (or can see) the incoming calls, a user only can see the incoming calls while the app is open.