Domanda

I want to implement notifications in android using 3.3 cordova, I'm new at this. I have tried several tutorials but without success. Could explain a simple way to implement it step by step?

Thank You

È stato utile?

Soluzione

Cordova Push Notifications Plugin for Android, iOS and WP8

This plugin is for use with Cordova, and allows your application to receive push notifications on both Android and iOS devices. The Android implementation uses Google's GCM (Google Cloud Messaging) service, whereas the iOS version is based on Apple APNS Notifications.

Follow the given step by step

1) PushPlugin

2) Implement Push Notifications in your PhoneGap Application

Note: Dont't forget to add cordova_plugin.js and PushNotification.js file in your page.

Altri suggerimenti

Use this phonegap plugin for push notification both in Android and IOS. It works fine for me.

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

You can copy/paste the instruction on this link .

https://github.com/Pushwoosh/phonegap-3-sample-app

The files you need are : copy the index.js , to add pushnotification.js into your index.html , to add the plug in pushwoosh to config.xml and the important thing is API ID from google and the ID from pushwoosh , those two ID you can put in the index.js for IOS and Android .

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top