onNewHmsPushToken static method

Future<void> onNewHmsPushToken(
  1. String token
)

Sends a new Huawei Mobile Services (HMS) push token to LogDrop.

token is the HMS push token string.

Android only: does nothing on iOS.

Implementation

static Future<void> onNewHmsPushToken(String token) async {
  if (defaultTargetPlatform != TargetPlatform.android) return;
  await _channel.invokeMethod<void>(MethodNames.onNewHmsPushToken, {
    'token': token,
  });
}