I have 2 devices registered, and the title says push enabled. When I open the app in the device, it shows the token. (App in Cordova) But when I press Woosh, the notifications never arrives. And in the statistics, shows 0 sent, why is that?

asked 12 May '16, 16:18
andyark's gravatar image

andyark
111

Hi!

Could you please specify whether there are any delivery Report button like this for the push that has never arrived:

alt text

permanent link
answered 17 May '16, 09:40
Nikolai's gravatar image

Nikolai
3585

edited 17 May '16, 09:40

Hi, I resolved it. In the Cordova PushWoosh Documentarion they have this:

pushNotification.registerDevice(
        function(status) {
            var pushToken = status;
            console.warn('push token: ' + pushToken);
        },
        function(status) {
            console.warn(JSON.stringify(['failed to register ', status]));
        }
    );

And I found another code somewhere else:

pushNotification.registerDevice(
            function(token) {
                var pushToken = status;
                console.warn('push token: ' + pushToken);
            },
            function(status) {
                console.warn(JSON.stringify(['failed to register ', status]));
            }
        );

As you can see, the first function receive token as parameter, and in their sample, not.

permanent link
answered 19 May '16, 17:13
andyark's gravatar image

andyark
111

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
×190
×111

question asked: 12 May '16, 16:18

question was seen: 3,318 times

last updated: 19 May '16, 17:13