Can I use Apple Push Notification Service to have my app do something without notifying user in iOS 7

后端 未结 3 2001
醉梦人生
醉梦人生 2021-01-22 15:23

My Algorithm wishes to work this way-

If some desired event occurs at my server then I wish to send a small amount of data to every user my app (foreground or background

3条回答
  •  囚心锁ツ
    2021-01-22 15:45

    You can use the content-available key in the push notification data and application:didReceiveRemoteNotification:fetchCompletionHandler:. It could be considered a bit of a hack for your use case and if you try to use it too much you will get limited by Apples system.

提交回复
热议问题