startForegroundService method
Starts the Android foreground service for this instance, enabling continuous or “sticky” background detection. This call is ignored on iOS.
Implementation
Future<void> startForegroundService() {
return _methodChannel.invokeMethod('startForegroundService', {
'instanceId': instanceId,
});
}