onNewFcmPushToken static method
Sends a new Firebase Cloud Messaging (FCM) push token to LogDrop.
token is the FCM push token string.
Android only: on iOS LogDrop uses the APNs device token, so this call does nothing there and can stay in shared push code.
Implementation
static Future<void> onNewFcmPushToken(String token) async {
if (defaultTargetPlatform != TargetPlatform.android) return;
await _channel.invokeMethod<void>(MethodNames.onNewFcmPushToken, {
'token': token,
});
}