Sending image in push notification to Android phones using phonegap plugin

折月煮酒 提交于 2019-12-24 01:39:12

问题


{
"GCM": "{ \"data\": {\"message\":\"test image\",\"image\":\"http://www.cespage.com/design/graphics/redstar.gif\",\"title\":\" Shopping!!!\"} }"
}

This is the data that I post from AWS SNS console, and the app has this plugin https://github.com/phonegap/phonegap-plugin-push

We use ionic framework and the config.xml has this

<feature name="http://api.phonegap.com/1.0/notification" />
<gap:plugin name="com.phonegap.plugins.pushplugin" version="2.5.0" />

I explored https://github.com/phonegap/phonegap-plugin-push/blob/master/docs/API.md#pushonnotification-callback and https://github.com/phonegap/phonegap-plugin-push/blob/master/src/android/com/adobe/phonegap/push/GCMIntentService.java

if the data contains an element called image, it should load the image from the image url. But it doesn't. How to troubleshoot this issue?

PS : I am a backend developer and do not have exposure to app development.

来源:https://stackoverflow.com/questions/34409775/sending-image-in-push-notification-to-android-phones-using-phonegap-plugin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!