startService method

  1. @override
Future<bool> startService(
  1. NotificationPayload payload
)
override

Implementation

@override
Future<bool> startService(NotificationPayload payload) async {
  if (await isServiceRunning == false) {
    return await methodChannel.invokeMethod('startService', payload.toJson());
  }
  return false;
}