Is there a way somehow to persist a variable's value in NSE in subsequent push notifications.
Suppose i got a Bool variable which is by default false, now i got a push notification and i set this variable's value to true.
Is there a way if next time my push triggers i will be able to retrieve my variable's value i.e i get true ??
Post
Replies
Boosts
Views
Activity
I would like to know what happens if NSE's
didReceive(_ request: UNNotificationRequest, withContentHandler contentHandler: @escaping (UNNotificationContent) - Void)
method is called twice or thrice at almost same time.
basically the old one's contentHandler isn't called just yet but the new notification arrives??
How does iOS caters this situation, is notification lost, shown with default content?