如何使用多行(即带有“ "字符)发送 Apple 推送通知? [英] How can I send an Apple Push Notification with multiple lines i.e. with a ' ' character?
本文介绍了如何使用多行(即带有“
"字符)发送 Apple 推送通知?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想知道如何发送多行的苹果推送通知消息.使用 "似乎不起作用.
I would like to know how to send an apple push notification message with multiple lines. Using ' ' doesn't seem to work.
类似于:
第一行
第二行
现在它似乎完全忽略了这条消息.
Right now it seems to just ignore the message altogether.
推荐答案
你不能用escape发送多行推送,它不起作用!
You cannot send multi line push with a escape, it will not work!
只是尝试使用 Parse 发送推送:
simply tried to send push with Parse:
没有逃逸的有效载荷:
{ "alert": "Send me
a push without escape", "sound": "default" }
结果:
带逃逸的有效载荷
{ "alert": "Send me\na push with escape", "sound": "default" }
结果:
这篇关于如何使用多行(即带有“ "字符)发送 Apple 推送通知?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文