LSMPNDevice Class Reference
Inherits from | NSObject |
---|---|
Declared in | LSMPNDevice.h |
Overview
Class representing a device that supports Mobile Push Notifications (MPN).
It contains device details and the delegate needed to monitor its status.
An MPN device is created from a device token obtained from system’s Remote User Notification APIs, and must be registered on the LSLightstreamerClient
in order to successfully subscribe an MPN subscription. See
After creation, an LSMPNDevice object is in “unknown” state. It must then be passed to the Lightstreamer Server with the [LSLightstreamerClient registerForMPN:] method, which enables the client to subscribe MPN subscriptions and sends the device details to the server’s MPN Module, where it is assigned a permanent deviceId and its state is switched to “registered”.
Upon registration on the server, active MPN subscriptions of the device are received and exposed in the [LSLightstreamerClient MPNSubscriptions] collection.
An LSMPNDevice’s state may become “suspended” if errors occur during push notification delivery. In this case MPN subscriptions stop sending notifications and the device state is reset to “registered” at the first subsequent registration.