本文介绍了在Phonegap和Pushwoosh中修改通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在处理PhoneGap和Pushwoosh,并有一些问题:


  1. 可以更改

  2. 如果是,是否也可以仅在您收到某些指定数据时才显示通知? b $ b

    解决方案

    您将需要修改SDK,因为这个功能不幸的是没有开箱即可。如果你不介意做一些Java编码,这将是很容易。



    您可能需要修改此文件:



    p>

    此函数:



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


    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)

    这篇关于在Phonegap和Pushwoosh中修改通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-12 07:20