mirror of
https://github.com/nextcloud/talk-android
synced 2025-01-31 11:32:00 +00:00
Add foreground service type to MagicFirebaseMessagingService
Since SDK 31 foreground services can't start while running in background, except for a few special cases like phone calls. See: - https://developer.android.com/guide/components/foreground-services#background-start-restrictions Signed-off-by: Tim Krüger <t@timkrueger.me>
This commit is contained in:
parent
1551e7f1cb
commit
738ed94f98
@ -39,7 +39,8 @@
|
||||
|
||||
<service
|
||||
android:name=".services.firebase.MagicFirebaseMessagingService"
|
||||
android:exported="false">
|
||||
android:exported="false"
|
||||
android:foregroundServiceType="phoneCall">
|
||||
<intent-filter>
|
||||
<action android:name="com.google.firebase.MESSAGING_EVENT"/>
|
||||
</intent-filter>
|
||||
|
Loading…
Reference in New Issue
Block a user