Post

Replies

Boosts

Views

Activity

What happens when NSE called multiple times simultaneously.
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?
1
0
626
Mar ’21
Any way we can persist a variable's value in Notification Service Extension
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 ??
2
0
543
Dec ’20