applicationShouldHandlePushNotification static method
Decide whether to use the received message in the application or not. If this method returns false, the message will be processed by the SDK.
Implementation
static Future<bool> applicationShouldHandlePushNotification(Map<String, dynamic> data) async {
if (Platform.isAndroid) {
final shouldHandle = await _channel.invokeMethod<bool>('applicationShouldHandlePushNotification', data);
return shouldHandle!;
}
return true;
}