Pergunta

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?
Foi útil?

Solução

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 em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top