handlePushNotification static method
handlePushNotification
Handles a push notification
Available Platforms
Web, Android, iOS
Implementation
static Future<void> handlePushNotification({
required Map<String, dynamic> data,
}) async {
if (!kIsWeb && !io.Platform.isAndroid && !io.Platform.isIOS) {
debugPrint(
'handlePushNotification is not available for current operating system',
);
return;
}
await _channel.invokeMethod('handlePushNotification', {
'data': data,
});
}