代码之家  ›  专栏  ›  技术社区  ›  Victor

当应用程序处于后台时,iOS静默推送不工作

  •  0
  • Victor  · 技术社区  · 8 年前

    我用JPush发布了一个silent\u推。

    当应用程序在后台时,我无法接收到无声推送。

    AppDelegate的方法

    application:didReceiveRemoteNotification:fetchCompletionHandler
    

    不是火灾。

    enter image description here

    我错过了哪里?

    enter image description here

    新更新:

    我关闭了idevice的背景刷新功能。。。。

    1 回复  |  直到 8 年前
        1
  •  0
  •   Vini App    8 年前

    你把这个添加到你的 plist

    <key>UIBackgroundModes</key>
    <array>
        <string>fetch</string>
    </array>
    
    推荐文章