Is there a way to wakeup suspended app in iOS without user or server intervention

后端 未结 3 947
花落未央
花落未央 2020-12-09 09:16

Is there way to wakeup iOS app without using \"The significant-change location service\"?

I need to wakeup my app without server or user intervention Some thing simi

3条回答
  •  甜味超标
    2020-12-09 09:39

    What you are asking for is against Apple's rule, and I believe no one would like your app doing something secretly in the background without his permission.

    And you have listed all the options, that you don't want, but have to count on them.

    I think you need to think of how to combine them nicely and user friendly, make them work close what you need.

    This is the best combination I can think of:

    • Significant Location Change, you ask for user permission at the first time and occasionally afterwards.
    • Background Fetch, make sure your server return something every time get called, so that iOS won't optimize it to less frequent.
    • Silent Push Notification, you ask for user permission at the first time.

提交回复
热议问题