My app is user specific. multiple users can uses the same device.My application has offline logout functionality. consider that one of my user (say user 1)logout offline.during that time my server send notification to the APNS for user1. after some time my device become online. during that time i am not logged in to the app. my question is that while my device is online(when network connection is available)and user1 is logged out will my app receive the push notification from APNS server(those sent for logged out user)
A basic notification includes a title, some text, an icon, and a link. A title can contain up to 65 characters, a description is generally limited to 240 characters.
The system makes every attempt to deliver local and remote notifications in a timely manner, but delivery isn't guaranteed. The PushKit framework offers a more timely delivery mechanism for specific types of notifications, such as those VoIP and watchOS complications use.
Use a separate push certificate for each customer. This enables independent management of each customer's certificate and prevents customers from being able to see each other's device tokens.
On logout:
[[UIApplication sharedApplication] unregisterForRemoteNotifications];
On login:
[[UIApplication sharedApplication] registerForRemoteNotificationTypes:
(UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert)];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With