Skip to content

Commit

Permalink
Add foregroundServiceType for Android 14+
Browse files Browse the repository at this point in the history
  • Loading branch information
takke committed Jul 16, 2024
1 parent 7df1454 commit 1df9481
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@

<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" android:maxSdkVersion="28" />
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC" />

<application
android:name="jp.takke.datastats.App"
Expand All @@ -24,7 +25,11 @@
</intent-filter>
</activity>

<service android:enabled="true" android:exported="false" android:name="jp.takke.datastats.LayerService"/>
<service
android:enabled="true"
android:exported="false"
android:foregroundServiceType="dataSync"
android:name="jp.takke.datastats.LayerService" />

<receiver android:name=".BootReceiver" android:exported="true">
<intent-filter>
Expand Down

0 comments on commit 1df9481

Please sign in to comment.