Вопрос

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?
Это было полезно?

Решение

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)

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top