Skip to content

Commit

Permalink
fix background_service missing foregroundServiceType for android >14
Browse files Browse the repository at this point in the history
  • Loading branch information
frnandu committed Oct 1, 2024
1 parent adf7887 commit 71cb215
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
11 changes: 5 additions & 6 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,12 @@
<!-- Accepts URIs that begin with YOUR_SCHEME://YOUR_HOST -->
<data android:scheme="nostr" />
</intent-filter>
<!--Add this-->
<service
android:name="id.flutter.flutter_background_service.BackgroundService"
android:foregroundServiceType="dataSync"
/>
<!--end-->
</activity>
<service
android:name="id.flutter.flutter_background_service.BackgroundService"
android:foregroundServiceType="dataSync"
/>

<!-- Don't delete the meta-data below.
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
<meta-data
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.
version: 0.15.1+3008
version: 0.15.2+3009
versionCode: 3000

environment:
Expand Down Expand Up @@ -103,7 +103,7 @@ dependencies:
awesome_notifications_core: ^0.8.0
awesome_notifications: any
workmanager: ^0.5.1
flutter_background_service: ^5.0.7
flutter_background_service: ^5.0.10
flutter_local_notifications: ^17.2.2
# flutter_isolate: ^2.0.4
# secp256k1: ^0.3.0
Expand Down

0 comments on commit 71cb215

Please sign in to comment.