Skip to content

Commit cd9522c

Browse files
geneticdriftMaxKellermann
authored andcommitted
android: manifest - added android:foregroundServiceType=mediaPlayback and permission FOREGROUND_SERVICE_MEDIA_PLAYBACK
Required by newer android sdk.
1 parent 59bd0fe commit cd9522c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

android/app/src/main/AndroidManifest.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
<uses-permission android:name="android.permission.INTERNET" />
1818
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
1919
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
20+
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PLAYBACK" />
2021

2122
<application
2223
android:allowBackup="true"
@@ -64,7 +65,9 @@
6465
</receiver>
6566

6667
<service
67-
android:name=".Main" />
68+
android:name=".Main"
69+
android:foregroundServiceType="mediaPlayback"
70+
/>
6871
</application>
6972

7073
</manifest>

0 commit comments

Comments
 (0)