unregisterFromPushNotifications method

Future<void> unregisterFromPushNotifications(
  1. String pushToken
)

Unregisters from VoIP push notifications.

Application will no longer receive push notifications from Voximplant Server.

pushToken - Push notification token.

Throws VIException, if pushToken is null.

Errors:

Implementation

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