How to send/receive push notifications from ionic mobile app?

前端 未结 4 1052
眼角桃花
眼角桃花 2021-02-05 20:32

I have a messaging app built using the Ionic framework (on cordova). I plan on building this for android, and I\'d like a way to send and recieve push notifications from the app

4条回答
  •  隐瞒了意图╮
    2021-02-05 20:46

    Use this plugin https://github.com/phonegap-build/PushPlugin.

    Android devices receive push notifications through the Google Cloud Messaging (GCM) service, whereas iOS devices receive them from the Apple Push Notifications (APN) Service.

    The way the notifications are received (by sound, alert etc) is a combination of the options set in the application code upon registration as well as the user’s device settings for notifications.

    If you want more specific follow below tutorial :

    http://devgirl.org/2013/07/17/tutorial-implement-push-notifications-in-your-phonegap-application/

提交回复
热议问题