cordova push plugin服务器端php

时间:2016-08-11 06:41:14

标签: java c# android cordova google-cloud-messaging

功能

在cordova应用程序中

phonegap-plugin-push 1.8.1“PushPlugin”

问题

我似乎无法弄清楚要发送给GCM的服务器端JSON,以便我可以在手机上获得大图片通知。

目前只显示消息和标题

postData = "{ \"registration_ids\": [ \"" + RegKeyIDs + "\" ], \"data\": {\"additionalData\":\"" +
                        "additionalData" + "\", \"title\":\"" + "title" + "\", \"message\": \"" + "message" + "\", \"image\": \"" +
                        "https://google.com/randomimage.jpg" + "\", \"subtitle\":\"" + "subtitle" + "\", \"tickerText\": \"" +
                        "1" + "\", \"smallIcon\": \"" +
                        "https://google.com/randomimage.jpg" + "\", \"largeIcon\": \"" +
                        "https://google.com/randomimage.jpg" + "\", \"bigpicture\": \"" +
                        "http://www.jqueryscript.net/images/Simplest-Responsive-jQuery-Image-Lightbox-Plugin-simple-lightbox.jpg" + "\"}}";

是否有任何关于大图片通知的服务器端GCM处理文档

0 个答案:

没有答案