sendTokenToIntercom method

  1. @override
Future<void> sendTokenToIntercom(
  1. String token
)
override

The token to send to the Intercom to receive the notifications.

For the Android, this token must be a FCM (Firebase cloud messaging) token. For the iOS, this token must be a APNS token.

Implementation

@override
Future<void> sendTokenToIntercom(String token) async {
  assert(token.isNotEmpty);
  print("Start sending token to Intercom");
  await _channel.invokeMethod('sendTokenToIntercom', {'token': token});
}