Pregunta

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?
¿Fue útil?

Solución

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)

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top