Hi guys,

Do let me know if someone has successfully implemented push notification on iOS and Android using cordova plugin for pushwoosh.

Stack

Front-end : AngularJS + Cordova

Server: Rails

Ive reached thus far:

App.js

var initPushwoosh = function() {

    var pushwoosh = cordova.require("pushwoosh-cordova-plugin.PushNotification");

    // Should be called before pushwoosh.onDeviceReady
    document.addEventListener('push-notification', function(event) {
        var notification = event.notification;
        alert(notification);
        // handle push open here
    });

    // Initialize Pushwoosh. This will trigger all pending push notifications on start.
    pushwoosh.onDeviceReady({
        appid: "1E01B-5B52A",
        projectid: "MyEDiary"
    });

    pushwoosh.registerDevice(
        function(status) {
            var pushToken = status.pushToken;
            console.log( JSON.stringify(pushToken));
            // handle successful registration here
        },
        function(status) {
            console.log( JSON.stringify(status));
            // handle registration error here
        }
    );
}

initPushwoosh();

While registering the device, it seems to get a token(alpha numeric number), but trying to send the push doesnt seem to work. Im not sure even the push is working from server. Tried from https://go.pushwoosh.com/applications as well.

My questions are:

  • Where can we find the registered device list in pushwoosh?
  • Is there a success/failure status for each push notification?
  • Are there any detailed documentation for the same?
  • What am i doing wrong?

Roy

asked 06 Sep '16, 18:11
roymj88's gravatar image

roymj88
213

Hello,

Please note that the projectid value is your Google Project Number as it mentioned in our Cordova Integration Guide at Step 3. The Project Number is automatically assigned by the Google API Console when you create a project. You can find the Project Number in the “IAM & Admin” tab of the Google API console.

We can provide the list of devices subscribed to your app upon your request.

Success/failure status for each push notification can be found in the Push History section of your Pushwoosh Control Panel. In case you require additional assistance regarding different error messages, please contact our support team.

permanent link
answered 09 Sep '16, 06:23
Max%20Kuzakov's gravatar image

Max Kuzakov
4165

@Max Kuzakov: Thanks for replying. Please note that i'm trying to implement push notification for iOS platform.

(09 Sep '16, 07:06) roymj88 roymj88's gravatar image

Hello,

Please contact our support team with mentioning of your Pushwoosh username so we could investigate the issue that you are experiencing.

permanent link
answered 09 Sep '16, 07:41
Max%20Kuzakov's gravatar image

Max Kuzakov
4165

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×446
×326
×190

question asked: 06 Sep '16, 18:11

question was seen: 888 times

last updated: 09 Sep '16, 07:41