Push notifications in ionic 2

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

This answer helped me:

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 ?

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.

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

I was searching and I found [this] (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