unregisterForPushNotifications

Unregisters the device from push notifications without a callback.

This is a convenience method that calls unregisterForPushNotifications with a null callback. Use this when you don't need to handle the unregistration result. Example:


  // Simple unregistration without callback
  Pushwoosh.getInstance().unregisterForPushNotifications();

See also


Unregisters the device from push notifications with a callback.

This method unregisters the device from Pushwoosh, stopping all push notifications. The device will need to call registerForPushNotifications again to receive pushes. Example:


  Pushwoosh.getInstance().unregisterForPushNotifications((result) -> {
      if (result.isSuccess()) {
          Log.d("Pushwoosh", "Successfully unregistered");
      } else {
          Exception exception = result.getException();
          Log.e("Pushwoosh", "Failed to unregister: " + exception.getMessage());
      }
  });

Parameters

callback

push unregister callback