I'm using SCNetworkReachabilitySetCallback to detect network reachability changes. Also I'm using push notifications in my app. I'm stacked with this scenario:
- turn off network and go to background
- push notification subscription is aborted with 1009 error code (no internet)
- wait for a minute
- turn on network
The problem is that app goes to background and reachability callbacks are not coming to my iPhone anymore. So I can't subscribe to push notifications until I will not go to foreground in my app.
I checked with Telegram - push notifications are coming to their app with this scenario. Does anyone know how to solve this problem?
Thanks a lot for your answers.