Using Reachability for Internet *or* local WiFi?

前端 未结 4 486
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-19 00:37

I\'ve searched SO for the answer to this question, and it\'s not really addressed, at least not to a point where I can make it work.

I was originally only checking f

4条回答
  •  既然无缘
    2020-12-19 00:41

    I'm not sure if this is your problem, but I noticed that it matters when you call startNotifier. I was having a similar problem with never receiving notifications (but with shorter values for "never" -- I guess I'm not as paitent) until I moved the startNotifier call into some UI code, specifically applicationDidFinishLaunching.

提交回复
热议问题