addForegroundNotificationListenerRaw method
Registers a callback function for foreground notifications processed by Apphud The callback will have String data.
Make sure to add SwiftApphudPlusPlugin.handleForegroundNotifications
to
AppDelegate.swift (check README)
Implementation
Future<void> addForegroundNotificationListenerRaw(
ValueSetter<String> callback) async {
return ApphudPlusPlatform.instance
.addForegroundNotificationListener(callback);
}