Modify notifications in Phonegap and Pushwoosh

旧时模样 提交于 2020-01-25 21:12:11

问题


I'm currently working on PhoneGap and Pushwoosh and have some questions:

  1. Is it possible to change the text / icon of the notification in the status bar?
  2. If yes, is it also possible to show the notification only when you have received some specified data?

回答1:


You will need to modify SDK for that as this functionality unfortunately is not available out of the box. If you don't mind doing some Java coding it would be rather easy.

You might need to modify this file:

https://github.com/shaders/pushwoosh-phonegap-3.0-plugin/blob/master/src/android/src/com/arellomobile/android/push/PushGCMIntentService.java

This function:

private static void generateNotification(Context context, Intent intent, Handler handler)



来源:https://stackoverflow.com/questions/20840956/modify-notifications-in-phonegap-and-pushwoosh

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