getBackgroundNotificationPayload method

  1. @override
Future<ApphudNotificationPayload?> getBackgroundNotificationPayload()
override

Implementation

@override
Future<ApphudNotificationPayload?> getBackgroundNotificationPayload() async {
  final result =
      await methodChannel.invokeMethod<String>('checkBackgroundNotification');
  if (result == null) {
    return null;
  }
  return ApphudNotificationPayload.fromJson(json.decode(result));
}