首页 > 移动平台 > 详细

Parse Notification for IOS

时间:2016-01-10 01:36:24      阅读:179      评论:0      收藏:0      [点我收藏+]

选择Json推送,必须加"aps":{"alert":"...", "sound":"default"}.否则当app在后台的时候,收不到推送。

如果只是选择plainText,则app在后台也可以收到推送,收到的userInfo就是"aps":{"alert":"...", "sound":"default"}

 

Json 推送:


  "aps": { 
    "alert": "Notification message with json data:T_shirt, product id:3988399364", 
    "sound": "default" 
  }, 
  "productId": "3988399364", 
  "productName": "T-Shirt" 
}

 

 

 

Plain Text 推送:

{

 "aps":{

    "alert":"Notification message with json data:T_shirt, product id:3988399364",

    "sound":"default"

 }

}

 

Parse Notification for IOS

原文:http://www.cnblogs.com/rockylearnstodevelop/p/5117639.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!