Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

startForeground in Android 14 is causing fatal exception #187

Open
janhelwich opened this issue Jul 27, 2024 · 0 comments
Open

startForeground in Android 14 is causing fatal exception #187

janhelwich opened this issue Jul 27, 2024 · 0 comments

Comments

@janhelwich
Copy link

Here the out from crashlytics:

Fatal Exception: android.app.MissingForegroundServiceTypeException
Starting FGS without a type callerApp=ProcessRecord{646d0e3 7546:de.telemarie.family/u0a207} targetSDK=34

android.app.IActivityManager$Stub$Proxy.setServiceForeground (IActivityManager.java:7234)
android.app.Service.startForeground (Service.java:775)
io.wazo.callkeep.VoiceConnectionService.startForegroundService (VoiceConnectionService.java:252)
io.wazo.callkeep.VoiceConnectionService.onCreateIncomingConnection (VoiceConnectionService.java:139)
android.telecom.ConnectionService.createConnection (ConnectionService.java:2399)

Here the (new?) requirements regarding manifests etc:
https://developer.android.com/about/versions/14/changes/fgs-types-required#phone-call

Most of it is configurable but there seems to be requirement to add [FOREGROUND_SERVICE_TYPE_PHONE_CALL] to the startForegorund call.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant