getBackgroundNotificationData method

Future<ApphudNotificationPayload?> getBackgroundNotificationData()

Checks if anynotifications were processed by Apphud in the background state and returns data in ApphudNotificationPayload.

Make sure to add SwiftApphudPlusPlugin.handleBackgroundNotifications to AppDelegate.swift (check README)

Implementation

Future<ApphudNotificationPayload?> getBackgroundNotificationData() async {
  return ApphudPlusPlatform.instance.getBackgroundNotificationPayload();
}