更新时间:2022-04-02 00:37:39
由于这个答案,我设法解决了这个问题:https://***.com/a/37550067/516338
I managed to fix the problem thanks to this answer: https://***.com/a/37550067/516338
基本上,虽然不在文档中,但您必须在 iOS 上将优先级"字段设置为高",如下所示:
Basically, although NOT in the documents, you have to set the "priority" field to "high" on iOS, like this:
{
"to": "cHPpZ_s14EA:APA91bG56znW...",
"priority": "high",
"notification" : {
"body" : "hello!",
"title": "afruz",
"sound": "default"
}
}