unregisterIMPushNotificationsTokenIOS method

Future<void> unregisterIMPushNotificationsTokenIOS(
  1. String imToken
)

Unregister Apple Push Notifications token.

After calling this function application stops receive push notifications from Voximplant Server. If the provided token is not nil, but the client is not logged in, the token will be unregistered just after login.

IOS ONLY.

imToken - The APNS token for IM push notification.

Implementation

Future<void> unregisterIMPushNotificationsTokenIOS(String imToken) async {
  try {
    await _channel.invokeMethod(
      'Client.unregisterIMPushNotificationsToken',
      imToken,
    );
  } on PlatformException catch (e) {
    throw VIException(e.code, e.message);
  }
}