Skip to content

Commit

Permalink
Add foregroundServiceType
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesa2 committed Jul 26, 2023
1 parent 967cdd1 commit bde4570
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion serviceLibrary/src/androidTest/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

<application>
<!-- Mqtt Service -->
<service android:name="info.mqtt.android.service.MqttService" />
<service
android:name="info.mqtt.android.service.MqttService"
android:foregroundServiceType="dataSync" />

</application>

Expand Down
5 changes: 4 additions & 1 deletion serviceLibrary/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC" />

<application>

<service android:name="info.mqtt.android.service.MqttService" />
<service
android:name="info.mqtt.android.service.MqttService"
android:foregroundServiceType="dataSync" />

</application>

Expand Down

0 comments on commit bde4570

Please sign in to comment.