startForegroundService method
Implementation
@override
Future<bool> startForegroundService({
required String pollingUrl,
int? intervalMinutes,
String? channelId,
}) async {
final result =
await methodChannel.invokeMethod<bool>('startForegroundService', {
'pollingUrl': pollingUrl,
'intervalMinutes': intervalMinutes,
'channelId': channelId,
});
return result ?? false;
}