remove method

Future<RemoveDeviceResult> remove(
  1. PushGateway gateway, {
  2. String? topic,
  3. Environment? environment,
})

Use this method to deregister the device deviceId from all push notification channels This method is allowing for removal of all registered channels at once, for a given device, without specifying all of the channels Provide apropriate value of push service backend gateway

In case of apns2 gateway please provide topic and environment(default: development) values

Implementation

Future<RemoveDeviceResult> remove(PushGateway gateway,
    {String? topic, Environment? environment}) {
  return _core.removeDevice(deviceId, gateway,
      topic: topic, environment: environment, keyset: _keyset);
}