Will iOS launch my app into the background if it was force-quit by the user?

后端 未结 7 770
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-22 00:46

I am triggering a background fetch by using the content-available flag on a push notification. I have the fetch and remote-notification

7条回答
  •  你的背包
    2020-11-22 01:13

    You can change your target's launch settings in "Manage Scheme" to Wait for .app to be launched manually, which allows you debug by setting a breakpoint in application: didReceiveRemoteNotification: fetchCompletionHandler: and sending the push notification to trigger the background launch.

    I'm not sure it'll solve the issue, but it may assist you with debugging for now.

    screenshot

提交回复
热议问题