# Push notifications in ionic 2

**URL:** <https://forum.ionicframework.com/t/push-notifications-in-ionic-2/66327>\
**Category:** ionic-v3\
**Created:** [October 9, 2016, 9:04am UTC](https://forum.ionicframework.com/t/push-notifications-in-ionic-2/66327 "2016-10-09T09:04:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mridul\_ahuja](https://avatars.discourse-cdn.com/v4/letter/m/ac91a4/32.png) [@mridul\_ahuja](https://forum.ionicframework.com/u/mridul_ahuja)\
**Post date:** [October 9, 2016, 9:04am UTC](https://forum.ionicframework.com/t/push-notifications-in-ionic-2/66327/1 "2016-10-09T09:04:11Z")

</div>

I want to know how to send push notifications to my ionic 2 app. I have searched a lot but still can’t get it to work. Most of the tutorials I came across were old and depreciated. Can anyone please guide me to a working tutorial or a sample project ?

I would like to use Firebase for sending notifications

---

<div class="post-metadata">

**Author:** ![GrumpyTrollz](https://avatars.discourse-cdn.com/v4/letter/g/35a633/32.png) [@GrumpyTrollz](https://forum.ionicframework.com/u/GrumpyTrollz)\
**Post date:** [October 10, 2016, 6:01pm UTC](https://forum.ionicframework.com/t/push-notifications-in-ionic-2/66327/2 "2016-10-10T18:01:11Z")

</div>

This answer helped me:

> [@Push Notifications with Ionic 2](https://forum.ionicframework.com/t/push-notifications-with-ionic-2/63851/6):
>
> This worked for me, sending notifications from the Firebase console. All you need is to add these 3 plugins ⁠⁠⁠ionic plugin add cordova-plugin-inappbrowser ionic plugin add cordova-plugin-fcm ionic plugin add cordova-plugin-velda-devicefeedback And go to [Firebase Console](http://console.firebase.google.com/) Create New Project Add a Name to your project Select which platform you like (ios/android) Add your Package Name which is the id of your app, (you can see it in your config.xml something like id=“com.ionicframework.someTest…

---

<div class="post-metadata">

**Author:** ![mridul\_ahuja](https://avatars.discourse-cdn.com/v4/letter/m/ac91a4/32.png) [@mridul\_ahuja](https://forum.ionicframework.com/u/mridul_ahuja)\
**Post date:** [October 14, 2016, 6:27am UTC](https://forum.ionicframework.com/t/push-notifications-in-ionic-2/66327/3 "2016-10-14T06:27:41Z")

</div>

I tried your solution but I’m getting the following error while building it :  
`Please fix the version conflict either by updating the version of the google-services plugin (information about the latest version is available at https://bintray.com/android/android-tools/com.google.gms.google-services/) or updating the version of com.google.android.gms to 9.2.0`

Any idea how to fix it ?

---

<div class="post-metadata">

**Author:** ![Interpulse](https://avatars.discourse-cdn.com/v4/letter/i/71e660/32.png) [@Interpulse](https://forum.ionicframework.com/u/Interpulse)\
**Post date:** [October 14, 2016, 9:30am UTC](https://forum.ionicframework.com/t/push-notifications-in-ionic-2/66327/4 "2016-10-14T09:30:14Z")

</div>

Type in android in your cmd. Make sure you have Google play services and Google Repository installed under extra’s.  
I was missing these and got the same error message.

 ![image](https://global.discourse-cdn.com/ionicframework/original/3X/1/3/13f485989e304de50ef37dc5653c6cb60cd6b548.png)

---

<div class="post-metadata">

**Author:** ![mridul\_ahuja](https://avatars.discourse-cdn.com/v4/letter/m/ac91a4/32.png) [@mridul\_ahuja](https://forum.ionicframework.com/u/mridul_ahuja)\
**Post date:** [October 14, 2016, 9:52am UTC](https://forum.ionicframework.com/t/push-notifications-in-ionic-2/66327/5 "2016-10-14T09:52:11Z")

</div>

Thnx Interpulse. I’ve already checked. All the items in Extras are installed except for `Google USB Driver` and `Intel x86 Emulator Accelerator (HAXM installer)` , as these are not compatible with linux.

Also my SDK Manager shows no updates for `Google Play services` or `Google Repository`

![image](https://global.discourse-cdn.com/ionicframework/original/3X/0/a/0a8ff6bd8919faf1469a990497c3018cf2967f0b.png)

---

<div class="post-metadata">

**Author:** ![mridul\_ahuja](https://avatars.discourse-cdn.com/v4/letter/m/ac91a4/32.png) [@mridul\_ahuja](https://forum.ionicframework.com/u/mridul_ahuja)\
**Post date:** [October 14, 2016, 11:54am UTC](https://forum.ionicframework.com/t/push-notifications-in-ionic-2/66327/6 "2016-10-14T11:54:46Z")

</div>

I was searching and I found [this] ([http://stackoverflow.com/a/37311511/5437621](http://stackoverflow.com/a/37311511/5437621)).

In my SDK folder, I do have a `<sdk>/extras/google/m2repository/com/google/android/gms` folder whch contains Play services upto version 9.6.1

How do I set this as the path of Play services in ionic app so it looks in this directory rather than looking into `<sdk>/extras/google/google_play_services`
