开发者

How to suppress view button Push Notifications?

In the apple documentation, they show a notification where there's no view button, just an "OK" button.

How could I do this in my ap开发者_高级运维p.

does this have to be implemented in the payload code, or in the local app?

any help is appreciated, thanks!


nevermind, I found it has to do with the "body" element of the message:

Here's an example

{"aps":
     {"alert":{"body":"You got a new message!",
     /* You can change "action-loc-key" to what you want the 'action' button
       to say. (In this case, nothing) */
     "action-loc-key":null},
     "badge":0,
     "sound":"beep.wav"},
"acme1":"bar",
"acme2":42
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜