Google Cloud Messaging showing success message but not sending iOS

前端 未结 2 1384
醉话见心
醉话见心 2021-02-20 16:06

So I have run into a very strange problem with Google Cloud Messaging. The problem I am having is that it is registering the devices successfully, and when a message is sent I g

2条回答
  •  后悔当初
    2021-02-20 16:33

    Instead of adding "priority" : 10, You should add the following line: "content_available" : true,

    In APNS server (iOS), The content_avaialble changes to 1 which leads the push notification in background. And adding "priority":10, will drain more iphone battery. In my case I don't even have anything related to priority, but it still works.

提交回复
热议问题