foreground_service 2.0.1+1 foreground_service: ^2.0.1+1 copied to clipboard
Flutter plugin for running dart stuff via an Android foreground service. Only barely tested on Android O, and ever so slightly on M. iOS support not planned.
Change ForegroundServiceNotification to public with private constructor so that hopefully the instance methods will show up in the pub.dev API reference
Add iOS dummy/placeholder so cross-platform apps that include this are still able to build
Include note about compileSdkVersion/targetSdkVersion requirement in README
Add foregroundServiceType to Android manifest (Requires Gradle compileSdkVersion/targetSdkVersion in app to be set to 29 or higher)
Service function can now be set to execute async(default) or synchronously using setServiceFunctionAsync
Messages can now be sent between the main app and the foreground service via ForegroundService.sendToPort
Properly re-hook service after app kill+relaunch
Actually return the default behavior, as was supposed to happen in 1.1.2
Allow ForegroundService plugin functions to be called from within designated service function
Return default behavior to continue running service after app is killed Alternate behavior might be desirable, so expose setContinueRunningAfterAppKilled method (only works with Android v2 embedding/Flutter 1.12.x+)
Correct releaseWakeLock method name typo
Remove author from pubspec (deprecated)
Update example/readme to reflect Flutter 1.12.x changes
Add foreground service permission/service to manifest in plugin
Implemented FlutterPlugin interface for Flutter 1.12.x
Updated Kotlin to v1.3.50, Gradle to v3.5.3
Add option to get a wake lock
Either by passing true to second parameter of startForegroundService or by calling new method getWakeLock()
Should no longer crash due to @UiThread exception.
Add functions to check service started status & stop service
Slightly updated readme
Fix bug (class would try to init Instant regardless of api level)
Try to fix wording. ("No" got left behind on a separate line, so it look liked it said "iOS support planned" at a glance).
1st version. Should suffice to take care of the simple case/bare necessities: Change title, Change text, Change icon, Change priority, and most importantly run a dart function within the context of a foreground service.