Search code examples
androidcordovapush-notificationphonegap-pluginsandroid-c2dm

android GCM push notifications


I have successfully set up the code to run GCM over phonegap on an android app. I have managed to secure the handset registration ID and able to send a message to the app using this ID in a PHP script. My only problem is that the message displays as a javascript alert whilst the app is open, and I am looking to have message sent to the handset's but not showing icon on top notifications bar .

**> does is possible showing icon on top bar in android device

Does anyone know if the GCM plugin for Phonegap is capable of doing this?**

I have using C2DM-Phonegap. https://github.com/marknutter/GCM-Cordova

please help me friends...


Solution

  • The library you are using specifies what needs to be done when a message is received. You can either modify their code to do what you want or roll your own GCMIntentService.

    please refer this links :

    https://github.com/phonegap-build/PushPlugin

    https://build.phonegap.com/plugins/324