How to integrate Pushwoosh SDK into your project

Supports iOS, Android

Download Module Download Geozones Module Download Sample Module API Docs Geozones Module API Docs

  1. Add Pushwoosh module to your app according to the Configuration for your Modules article on

  2. Configure your project in Firebase Console.

  3. Locate the google-services.json file to the src folder in your project directory.


You should've gotten the google-services.json file while creating the app in Firebase console. If you haven't, please consult this thread (section Get a config file for your Android app).

4. Set up push notifications handler:

function (notification) {
alert('push received: ' + notification);

5. Set up push registration handler:

function (status) {
log('registered with token: ' + status['deviceToken']);

6. Call “onDeviceReady” method (make sure you call this method each time the app starts):

Replace ENTER_PUSHWOOSH_APP_ID with your real Pushwoosh App ID, and for Android replace FCM_SENDER_ID with Sender ID you got from the Firebase Console.

forge.pushwoosh.onDeviceReady({"pw_appid":"ENTER_PUSHWOOSH_APP_ID", "gcm_id":"ENTER_FCM_SENDER_ID"});

5. Register for push notifications:


Geozones Push Notifications

  1. To enable location tracking in your app, add pushwoosh_geozones module to your app according to the Configuration for your Modules article on

  2. To start location tracking, call:


That’s it!