onRemoteMessageReceived static method

dynamic onRemoteMessageReceived(
  1. Map<String, String> data
)

Handles a remote push message received by the application.

Typically called when an FCM or HMS push notification arrives.

data is the key-value payload received from the push service.

Implementation

static onRemoteMessageReceived(Map<String, String> data) {
  _channel.invokeMethod(MethodNames.onRemoteMessageReceived, {'data': data});
}