onStatusChanged method

void onStatusChanged(
  1. String status,
  2. int timestamp
)

Event handler called when the server notifies that an MpnSubscription changed its status.

Note that in some server clustering configurations the status change for the MPN subscription's trigger event may not be called. The corresponding push notification is always sent, though.

  • status The new status of the MPN subscription. It can be one of the following:
  • UNKNOWN
  • ACTIVE
  • SUBSCRIBED
  • TRIGGERED
- [timestamp] The server-side timestamp of the new subscription status.

Implementation

void onStatusChanged(String status, int timestamp) {}