Skip to content

Commit

Permalink
feat: changed service type to datasync
Browse files Browse the repository at this point in the history
Changed service type to datasync
  • Loading branch information
brunochikuji authored Jun 25, 2024
1 parent 3c8ef31 commit 514d0fa
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,25 @@
</config-file>

<config-file target="AndroidManifest.xml" parent="/manifest/application">
<service android:name="de.appplant.cordova.plugin.background.ForegroundService" android:foregroundServiceType="mediaPlayback" />
<service
android:name="de.appplant.cordova.plugin.background.ForegroundService"
android:foregroundServiceType="dataSync"
android:exported="false">
</service>
</config-file>

<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="android.permission.WAKE_LOCK" />
</config-file>

<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
</config-file>

<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC" />
</config-file>

<source-file
src="src/android/BackgroundMode.java"
target-dir="src/de/appplant/cordova/plugin/background" />
Expand Down

0 comments on commit 514d0fa

Please sign in to comment.