startNotificationPolling method
Start polling for notifications from a remote server.
This uses WorkManager for battery-efficient background tasks. Returns true if polling was started successfully.
Implementation
@override
Future<bool> startNotificationPolling({
required String pollingUrl,
int? intervalMinutes,
}) async {
final result = await methodChannel.invokeMethod<bool>(
'startNotificationPolling',
{'pollingUrl': pollingUrl, 'intervalMinutes': ?intervalMinutes},
);
return result ?? false;
}