pushwoosh by Pushwoosh

Currently displaying version

Docs

  1. Add “Pushwoosh” module to your app as per the tools documentation.

  2. Set up push notifications handler:

    forge.internal.addEventListener("pushwoosh.pushReceived",
        function (notification) {
                alert('push received: ' + notification);
        }
    );
    
  3. Set up push registration handler:

    forge.internal.addEventListener("pushwoosh.registrationSuccess",
        function (status) {
                log('registered with token: ' + status['deviceToken']);
        }
    );
    
  4. Call onDeviceReady method (make sure you call this method each time the app starts):

    For Android - pw_appid is your Pushwoosh App Id, gcm_id is your Google Project Number

    forge.pushwoosh.onDeviceReady({"pw_appid":"XXXX-XXXX", "gcm_id":"123456789012"});
    

    For iOS - pw_appid is your Pushwoosh App Id

    forge.pushwoosh.onDeviceReady({"pw_appid":"XXXX-XXXX"});
    
  5. Register for push notifications:

    forge.pushwoosh.registerDevice();
    

That’s it!

You can find more API and samples on our website in: https://www.pushwoosh.com/programming-push-notification/

iOS Guide: https://www.pushwoosh.com/programming-push-notification/ios/ios-additional-platforms/trigger-io/

Android Guide: https://www.pushwoosh.com/programming-push-notification/android/android-additional-platforms/trigger-io/

Pushwoosh: http://www.pushwoosh.com