Define websocket foreground service type
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
||||
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
|
||||
<uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM" />
|
||||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_SPECIAL_USE" />
|
||||
|
||||
<application
|
||||
android:name=".GotifyApplication"
|
||||
@@ -73,7 +74,13 @@
|
||||
android:exported="false"
|
||||
android:theme="@style/AppTheme.Dialog" />
|
||||
|
||||
<service android:name=".service.WebSocketService" />
|
||||
<service
|
||||
android:name=".service.WebSocketService"
|
||||
android:foregroundServiceType="specialUse">
|
||||
<property
|
||||
android:name="android.app.PROPERTY_SPECIAL_USE_FGS_SUBTYPE"
|
||||
android:value="explanation_for_special_use" />
|
||||
</service>
|
||||
|
||||
<receiver android:name=".init.BootCompletedReceiver"
|
||||
android:exported="true">
|
||||
|
||||
Reference in New Issue
Block a user