getStatus method

String getStatus()

The status of the device.

The status can be:

  • UNKNOWN: when the MPN device object has just been created or deleted. In this status [isRegistered] and [isSuspended] are both false.
  • REGISTERED: when the MPN device object has been successfully registered on the server. In this status [isRegistered] is true and [isSuspended] is false.
  • SUSPENDED: when a server error occurred while sending push notifications to this MPN device and consequently it has been suspended. In this status [isRegistered] and [isSuspended] are both true.

Lifecycle This method can be called at any time.

Returns the status of the device.

Implementation

String getStatus() {
  return _status;
}