User push notifications in cordova 3.3

后端 未结 3 1259
攒了一身酷
攒了一身酷 2021-01-25 11:42

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

相关标签:
3条回答
  • 2021-01-25 12:02

    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.

    0 讨论(0)
  • 2021-01-25 12:19

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

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

    0 讨论(0)
  • 2021-01-25 12:26

    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 .

    0 讨论(0)
提交回复
热议问题