开发者社区 问答 正文

移动推送 iOS : 如何让推送内容自动换行?

移动推送 iOS : 如何让推送内容自动换行?

展开
收起
保持可爱mmm 2020-03-27 23:50:31 993 分享
分享
版权
举报
1 条回答
写回答
取消 提交回答
  • 在 body 里的 字符串中 添加 \n 达到换行的效果 ,代码示例如下 :

    { "aps": { "alert": { "title": "title", "subtitle": "subtitle", "body": "This is some fancy message. \nThis is some fancy message. \nThis is some fancy message. \nThis is some fancy message. " }, "badge": 1, "sound": "default", "category": "test_category", "mutable-content": 1 }, "key1":"value1", "key2":"value2" }

    2020-03-27 23:53:46 举报
    赞同 评论

    评论

    全部评论 (0)

    登录后可评论