Skip to content

Commit

Permalink
fix: add foreground service for Android 14
Browse files Browse the repository at this point in the history
  • Loading branch information
robsonos committed Jan 12, 2024
1 parent 4ad4ba3 commit 12bbd7b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions android/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.plugin.nordicdfu">
<application>
<service android:name=".DfuService"/>
<service
android:name=".DfuService"
android:foregroundServiceType="connectedDevice" />
<activity android:name=".NotificationActivity"/>
</application>


<uses-permission android:name="android.permission.FOREGROUND_SERVICE_CONNECTED_DEVICE" />
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
</manifest>

0 comments on commit 12bbd7b

Please sign in to comment.