handlePush method
Let the SDK handle an incoming push payload.
This method should be called when your app receives a push notification that might be related to Dimelo messaging.
Parameters:
payload- The push notification payload
Returns true if the payload was consumed by Dimelo, false otherwise.
Implementation
@override
Future<bool> handlePush(Map<String, String> payload) async {
try {
final result = await methodChannel.invokeMethod<bool>('handlePush', payload);
return result ?? false;
} on PlatformException catch (e) {
debugPrint('Failed to handle push: ${e.message}');
return false;
}
}