How to create push notification in ionic 2

I need a good guide to install ionic 2 push notification in android.

I tried this link ( and it doesnt work.


What doesnt work? We’ve gone through the docs many times and can verify that they do indeed work.
Could you explain?

I run

ionic build android

and got this error:


Total time: 36.124 secs

Error: /home/ubuntu/workspace/WriteNow/platforms/android/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:processDebugGoogleServices’.

Please fix the version conflict either by updating the version of the google-services plugin (information about the latest version is available at or updating the version of to 9.2.0.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

i have encounter the same problem…seem like this is the problem caused by the push plugin…just install the older version solved my problem and now working fine

im using ‘phonegap-plugin-push 1.7.1’