# Ionic push notificatoins

**URL:** <https://forum.ionicframework.com/t/ionic-push-notificatoins/41324>\
**Category:** ionic-v1\
**Created:** [January 15, 2016, 1:24pm UTC](https://forum.ionicframework.com/t/ionic-push-notificatoins/41324 "2016-01-15T13:24:00Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![niklas\_ngenic](https://avatars.discourse-cdn.com/v4/letter/n/5fc32e/32.png) [@niklas\_ngenic](https://forum.ionicframework.com/u/niklas_ngenic)\
**Post date:** [January 15, 2016, 1:24pm UTC](https://forum.ionicframework.com/t/ionic-push-notificatoins/41324/1 "2016-01-15T13:24:00Z")

</div>

Hi!

I’m about to implement push notification functionality in an ionic app. Currently I’m evaluating the alternatives on how to do this and I have a hard time finding the best solution. Should I use the ionic push service, or Parse or perhaps another solution?

The use case is that we will generate messages server side depending on different events. The message is specific to a user (which has to log in to the app in order to get access). When the user navigates to his/hers inbox in the app, all messages are shown there. When the message is generated a push notification should be sent to the user that a new message has been received (togehter with a short summary if the message) and if the user pushes the notification he/she should be redirected to the inbox in the app.

The app is deployed on both IOS and Android devices and I cannot assume that a device will always be used by only one user.

EDIT: Forgot to add that the notification also should be able to be recieved even if the app is running in the background,

---

<div class="post-metadata">

**Author:** ![Devniz](https://avatars.discourse-cdn.com/v4/letter/d/a183cd/32.png) [@Devniz](https://forum.ionicframework.com/u/Devniz)\
**Post date:** [January 15, 2016, 1:29pm UTC](https://forum.ionicframework.com/t/ionic-push-notificatoins/41324/2 "2016-01-15T13:29:34Z")

</div>

This is what I used for the same case:

> **[phonegap/phonegap-plugin-push](https://github.com/phonegap/phonegap-plugin-push)**
>
> phonegap-plugin-push - Register and receive push notifications

  

> **[Pusher | Leader In Realtime Technologies](https://pusher.com/)**
>
> Leaders in realtime technologies. We empower all developers to create live features for web and mobile apps with our simple hosted API.

---

<div class="post-metadata">

**Author:** ![niklas\_ngenic](https://avatars.discourse-cdn.com/v4/letter/n/5fc32e/32.png) [@niklas\_ngenic](https://forum.ionicframework.com/u/niklas_ngenic)\
**Post date:** [January 15, 2016, 1:46pm UTC](https://forum.ionicframework.com/t/ionic-push-notificatoins/41324/3 "2016-01-15T13:46:11Z")

</div>

Hi and thanks for your reply.

Perhaps a stupid question, but how does the app know which push service to listen on? In the api docs for phonegap-plugin-push I cannot find any parameter for specifying the notification provider. Does, for instance [pusher.com](http://pusher.com) forward the notifications to APNS or GCM?

---

<div class="post-metadata">

**Author:** ![Devniz](https://avatars.discourse-cdn.com/v4/letter/d/a183cd/32.png) [@Devniz](https://forum.ionicframework.com/u/Devniz)\
**Post date:** [January 15, 2016, 2:02pm UTC](https://forum.ionicframework.com/t/ionic-push-notificatoins/41324/4 "2016-01-15T14:02:06Z")

</div>

@niklas_ngenic Pusher services has nothing to do with CGM or APNS it’s more an API to manage your events like used for:

- Multiplayer gaming.
- Badge notification.
- etc …

Regarding to the plugin cordova-push-plugin, this is what you need, I provided some instructions about how to setup with Android GCM here: [Ionic is not defined when using ionic-push](https://forum.ionicframework.com/t/ionic-is-not-defined-when-using-ionic-push/39840/3)

Hope it helps!

---

<div class="post-metadata">

**Author:** ![niklas\_ngenic](https://avatars.discourse-cdn.com/v4/letter/n/5fc32e/32.png) [@niklas\_ngenic](https://forum.ionicframework.com/u/niklas_ngenic)\
**Post date:** [January 15, 2016, 2:04pm UTC](https://forum.ionicframework.com/t/ionic-push-notificatoins/41324/5 "2016-01-15T14:04:03Z")

</div>

@Devniz But can I recieve notifications messages even if the app is running in the background?

---

<div class="post-metadata">

**Author:** ![Devniz](https://avatars.discourse-cdn.com/v4/letter/d/a183cd/32.png) [@Devniz](https://forum.ionicframework.com/u/Devniz)\
**Post date:** [January 15, 2016, 2:06pm UTC](https://forum.ionicframework.com/t/ionic-push-notificatoins/41324/6 "2016-01-15T14:06:28Z")

</div>

Yes you can do that with cordova-push-plugin.

---

<div class="post-metadata">

**Author:** ![niklas\_ngenic](https://avatars.discourse-cdn.com/v4/letter/n/5fc32e/32.png) [@niklas\_ngenic](https://forum.ionicframework.com/u/niklas_ngenic)\
**Post date:** [January 15, 2016, 2:22pm UTC](https://forum.ionicframework.com/t/ionic-push-notificatoins/41324/7 "2016-01-15T14:22:46Z")

</div>

@Devniz, Sorry But I still don’t understand where to define which push service to use with the phonegap-plugin-push. For instance, I have been looking into [Parse.com](http://Parse.com):s services. If I would like to use the plugin against Parse, I need to tell the plugin somewhere which service to register to?

---

<div class="post-metadata">

**Author:** ![Devniz](https://avatars.discourse-cdn.com/v4/letter/d/a183cd/32.png) [@Devniz](https://forum.ionicframework.com/u/Devniz)\
**Post date:** [January 15, 2016, 3:38pm UTC](https://forum.ionicframework.com/t/ionic-push-notificatoins/41324/8 "2016-01-15T15:38:02Z")

</div>

Please read the documentation of cordova-push-plugin, you need to fetch your registerId and configure GCM in your Google developer console, witch will serve your pushing system. As I’ve said I also provided instructions about how to use push notification.

---

<div class="post-metadata">

**Author:** ![leob](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/leob/32/14245_2.png) [@leob](https://forum.ionicframework.com/u/leob)\
**Post date:** [January 16, 2016, 2:50am UTC](https://forum.ionicframework.com/t/ionic-push-notificatoins/41324/9 "2016-01-16T02:50:19Z")

</div>

I have good experiences with Ionic Push, worked great for me after some initial hurdles.

The issues I had were related to the Ionic Web Client app interfering with Firebase and some issues with the GCM setup, but I was able to work around/fix these.

For the rest, Ionic Push worked great for me, it was fast and reliable, it was easy to set up and get working, I didn’t feel the need to look at 3rd party/other solutions.

---

<div class="post-metadata">

**Author:** ![alxvallejo](https://avatars.discourse-cdn.com/v4/letter/a/58956e/32.png) [@alxvallejo](https://forum.ionicframework.com/u/alxvallejo)\
**Post date:** [June 3, 2016, 2:28pm UTC](https://forum.ionicframework.com/t/ionic-push-notificatoins/41324/10 "2016-06-03T14:28:09Z")

</div>

With pusher, I can’t find where you would push to a specific device. It seems like pusher is more for channel notifications, rather than per-user notifications. Is that right?

---

<div class="post-metadata">

**Author:** ![alsrk666](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@alsrk666](https://forum.ionicframework.com/u/alsrk666)\
**Post date:** [August 8, 2016, 12:07pm UTC](https://forum.ionicframework.com/t/ionic-push-notificatoins/41324/11 "2016-08-08T12:07:07Z")

</div>

@leob Hi, I want to implement simple push notification service in my application from scratch level. What I have to do? Please give me any link that shows the steps needed for developing a push notifiction based ionic application?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![leob](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/leob/32/14245_2.png) [@leob](https://forum.ionicframework.com/u/leob)\
**Post date:** [August 8, 2016, 1:19pm UTC](https://forum.ionicframework.com/t/ionic-push-notificatoins/41324/12 "2016-08-08T13:19:32Z")

</div>

@alsrk666 I can share some code from an app that I developed, the problem however is that it’s based on Ionic Push ([ionic.io](http://ionic.io)) Alpha, so it stopped working already, I need to upgrade it to [ionic.io](http://ionic.io) Beta, when I’ve done that I can share the code with you (via Github) …

By the way, one problem I solved specifically was to get Ionic Push working alongside Firebase in one and the same app … because that was really a problem, when you implemented Ionic Push in the “standard” way then Firebase did not work anymore.

---

<div class="post-metadata">

**Author:** ![alsrk666](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@alsrk666](https://forum.ionicframework.com/u/alsrk666)\
**Post date:** [August 8, 2016, 1:29pm UTC](https://forum.ionicframework.com/t/ionic-push-notificatoins/41324/13 "2016-08-08T13:29:48Z")

</div>

@leob Thank you so much. And now I’m trying to build an app to test the push notifications in application by following this url [http://docs.ionic.io/v1.0/docs/push-from-scratch](http://docs.ionic.io/v1.0/docs/push-from-scratch). Can I continue with my process ? or else any suggestions to implement push services?

Thank you.

---

<div class="post-metadata">

**Author:** ![leob](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/leob/32/14245_2.png) [@leob](https://forum.ionicframework.com/u/leob)\
**Post date:** [August 8, 2016, 2:09pm UTC](https://forum.ionicframework.com/t/ionic-push-notificatoins/41324/14 "2016-08-08T14:09:36Z")

</div>

You can follow that guide, unless you use Firebase. My approach fixed a problem with the combination of Firebase and push.

(in fact it was the “Ionic Client Library” that was messing up something with Firebase, so what I did was find a way to implement Push without using the Client Library, which turned out to be quite easy)

---

<div class="post-metadata">

**Author:** ![Gridnet](https://avatars.discourse-cdn.com/v4/letter/g/41988e/32.png) [@Gridnet](https://forum.ionicframework.com/u/Gridnet)\
**Post date:** [March 24, 2017, 1:46pm UTC](https://forum.ionicframework.com/t/ionic-push-notificatoins/41324/15 "2017-03-24T13:46:31Z")

</div>

Hi, i also want to implement push notification functionality in an ionic app which is deployed on 3 platforms IOS, Android and Windows Phone. My question is, if i use 1) [https://github.com/phonegap/phonegap-plugin-push](https://github.com/phonegap/phonegap-plugin-push) and 2)[https://pusher.com](https://pusher.com) is this going to work for windows phone or not?
