Demo implementation of Catapush on PhoneGap. Can be used with Cordova, Ionic, etc.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


Catapush PhoneGap / Cordova / Ionic Library


Demo implementation of the Catapush messaging on a Phonegap / Cordova application.


Screenshot 1   Screenshot 2   Screenshot 3   Screenshot 4


Follow this steps to setup your first Cordova app (similar steps for a Ionic app). You should have nodejs and npm installed.

  1. Install cordova:

    npm install -g cordova
  2. Setup a new project:

    cordova create catapush DemoApp
  3. Install required plugins:

    cd cordova
    cordova plugin add cordova-plugin-device
    cordova plugin add --variable SENDER_ID="XXXXXXX" (in alternative to cordova plugin add phonegap-plugin-push)
    cordova plugin add cordova-plugin-x-toast
    cordova plugin add cordova-plugin-file
    cordova plugin add cordova-plugin-file-opener2
  4. Download the project and replace the www folder to use it as a boilerplate.

  5. Follow Cordova instructions to add platforms and build the project.

Further notes

  • To support ios 6, install following version of phonegap-plugin-push and cordova:
cordova platform add ios@3.9.2
cordova plugin add phonegap-plugin-push@1.5.3 --variable SENDER_ID="XXXXXXX"
  • Official Phonegap Push Plugin currently has a bug with Android devices which prevents app restart when a push notification is received if the app has been closed manually. There is a pending pull request that can be used to patch the bug until it is merged or even better use the Catapush phonegap-plugin-push repository. Please remember to change as suggested in the documentation.

  • Follow these instructions to setup push notification in your Catapush App Dashboard

  • Try adding an old android platform if you have problems:

cordova platform add android@6.4.0