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

强制退出应用程序时未收到丰富的通知

  •  0
  • Rishab  · 技术社区  · 6 年前

    当应用程序位于前台或后台时,一切正常。

    你知道有什么问题吗?

    1 回复  |  直到 6 年前
        1
  •  0
  •   Rishab    6 年前

    问题在于APNS有效载荷。价值 警觉的 aps

    也可以在 安慰

    Received remote notification request [ hasAlertContent: 0, hasSound: 0 hasBadge: 0 hasContentAvailable: 1 hasMutableContent: 0 ]
    
    Not delivering user visible notification because it has no alert, sound or badge
    

    documentation :

    要支持后台更新通知,请确保 aps 可用内容 带钥匙的钥匙 价值 后台更新,您可以设置 警觉的 , 徽章 aps 字典,视情况而定。