Hello all. I noticed, that NSE living more than 30 seconds ( that described in doc ).
When app receive notification, it created process NSE, and send notification to didReceive function, after this, app have 30 seconds to call contentHandler closure, after contentHandler is called, I expected that NSE process is killed, but it's not.
If app using singletons in NSE, they won't dealloc after contentHandler is called, so, after new notification received, singletons still alive.
Does it legal to not drop connection to websocket after contentHandler closure get called?
For example, notification received, NSE process is loaded, websocket manager signleton is initialzied and started session, after few seconds contentHandler closure get called, so, system won't kill NSE because of 30 seconds timer, and my web socket connection will alive so long as possible, so, I not need to open it each 30 seconds, is that legal or not?)
Topic:
App & System Services
SubTopic:
Notifications
Tags:
APNS
Network
Network Extension
User Notifications