4 Replies
      Latest reply on Mar 26, 2020 12:35 AM by svalma
      svalma Level 1 Level 1 (0 points)

        I'm using SCNetworkReachabilitySetCallback to detect network reachability changes. Also I'm using push notifications in my app. I'm stacked with this scenario:

         

        1. turn off network and go to background
        2. push notification subscription is aborted with 1009 error code (no internet)
        3. wait for a minute
        4. 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.