isSuspended method

bool isSuspended()

Checks whether the MPN device object is currently suspended on the server or not.

An MPN device may be suspended if errors occur during push notification delivery.
This flag is switched to true by server sent suspension events, and back to false in case of client disconnection or server sent resume events.

Lifecycle This method can be called at any time.

Returns true if the MPN device object is currently suspended on the server.

Implementation

bool isSuspended() {
  return _status == 'SUSPENDED';
}