Skip to content

Commit

Permalink
Add foregroundServiceType to manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
0xf104a committed Mar 12, 2024
1 parent 4a347df commit 7b5722f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<uses-permission android:name="android.permission.INTERNET" /> <!-- Permissions for old android versions -->
<uses-permission android:name="android.permission.AUTHENTICATE_ACCOUNTS" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC" />

<queries>
<package android:name="com.nextcloud.client" />
Expand All @@ -25,6 +26,7 @@
<service
android:name=".Services.NotificationWebsocketService"
android:enabled="true"
android:foregroundServiceType="dataSync"
android:exported="false">
<intent-filter>
<action android:name="android.net.conn.CONNECTIVITY_CHANGE"/>
Expand All @@ -38,6 +40,7 @@
<service
android:name=".Services.NotificationPollService"
android:enabled="true"
android:foregroundServiceType="dataSync"
android:exported="false" />

<receiver
Expand Down

0 comments on commit 7b5722f

Please sign in to comment.