Hi, i'm using the remove api /createmessage to send push to my clients.

i'm sending the same content to android/ios/wp/chrome but only on chrome i'm receveing the wrong content and userdata values.

/*NODEJS*/
var Pushwoosh = require('pushwoosh-client');
var clientPW = new Pushwoosh('app id', 'app token');

clientPW.sendMessage('any message', {
    send_date: 'now',
    ignore_user_timezone: true,

    devices: ['ios id', 'android id', 'wp id', 'chrome id'],

    platforms: [1, 3, 5, 9],

    data: {     
        title: 'any title'',
        message: 'any message',
        image: 'http://...anyimage.png',
        url: 'http://...anyurl.com'
    },

    chrome_icon: 'http://...anyimage.png',
    firefox_icon: 'http://...anyimage.png',

    android_custom_icon: 'http://...anyimage.png',
    android_vibration: 1,
    android_ibc: '#ffffff'
});
asked 07 Jun '16, 22:01
superainovacoes's gravatar image

superainovacoes
3116

12next »

@superainovacoes @Subb Iah

I am happy to inform you that we have implemented encryption and Chrome pushes can be sent with payload from now on! Please make sure that you have updated to our Web SDK 2.0

permanent link
answered 18 Jul '16, 13:05
idedov's gravatar image

idedov
2363

@idedov status please?

we really need some hurry on this

we need to send a specific message to each user

the solution without php encrypt i said above will work

this will take 5min of pushwoosh team!

send the pushtoken with the getlastmessage request filter it when it appear on the request and delivery the correct message using the pushtoken filter

permanent link
answered 14 Jul '16, 16:01
superainovacoes's gravatar image

superainovacoes
3116

edited 14 Jul '16, 16:09

Hello!

It is a known issue. Due to the current implementation, Chrome Web Pushes still don't have any payload, and the only way to pass any content is to fetch the latest message from your Push History. At the moment, we can only "inform" your Chrome browser that there is a message available for it. The browser will go to our server and grab the latest message — please keep in mind that there is no way we can point it towards the specific message, hence there is a possibility that your browser will fetch the content of the different message.

Our engineers are working on the new version of Web Push SDK and in the future this issue would be mended. Please follow our Blog for updates:

https://www.pushwoosh.com/blog/

permanent link
answered 20 Jun '16, 12:21
idedov's gravatar image

idedov
2363

The browser will go to our server and grab the latest message

Well the current implementation can handle this by setting a flag when the message is requested/seen by some token, then you can send or not the message.

permanent link
answered 21 Jun '16, 16:13
superainovacoes's gravatar image

superainovacoes
3116

Yes, our engineers are working on the new SDK at the very moment. Stay tuned for updates in our Blog:

https://www.pushwoosh.com/blog/

permanent link
answered 22 Jun '16, 09:46
idedov's gravatar image

idedov
2363

Hi, we have updated to the last version (http://docs.pushwoosh.com/docs/web-sdk-20) and we stil getting the wrong notification.

nodejs sample code

var Pushwoosh = require("pushwoosh-client");

var clientPW = new Pushwoosh("xxx", "xxx");

var devices = ["dxnOg-x7Ghw:APA91bEhAealka8y9QiPsH8g8vjBcXwxMGZ818A8XOWhQORwRUu8TzsiRce1esIxJJa68K66o41NMAoKtJFCryZkW3dBmg-9jab0BYHz2cNFDo9OBX05VVvt96cyInFCcasRS2a1FQRM"];

var options = {
    send_date: "now",
    ignore_user_timezone: true,

    devices: devices,

    platforms: [11]
};

clientPW.sendMessage("some random message", options, function (err, data) {
    console.info("send", err, data);
});

alt text

permanent link
answered 04 Jul '16, 22:49
superainovacoes's gravatar image

superainovacoes
3116

edited 05 Jul '16, 13:39

Hi, we have updated to the last version (http://docs.pushwoosh.com/docs/web-sdk-20) and we stil getting the wrong notification.kindly give your updates

permanent link
answered 07 Jul '16, 13:48
Subb%20Iah's gravatar image

Subb Iah
13

how hard is sending the current token to get the last message and flag it as delivery so i can get the correct notification data.


the pushwoosh team does not event give attention to the this community, people here have no answers.


the correct "message" should be "Sitemercado Loja Teste: Rafael, recebemos seu pedido para RETIRADA, assim que estiver pronto enviaremos uma mensagem de confirmação. Cod: E3848" the correct "push_id" data should be: "23933"

check the images

pushwoosh request

pushwoosh result

chrome console log

permanent link
answered 07 Jul '16, 16:39
superainovacoes's gravatar image

superainovacoes
3116

Please note that in the Web SDK 2.0 it is still not possible to send any payload, we are looking forward to following updates.

permanent link
answered 08 Jul '16, 10:41
idedov's gravatar image

idedov
2363

Yes we know about that @idedov

We know that pushwoosh request the api to grab the last message but it gets the wrong message.

Just send the current pushtokenid to the api get the correct message and flag it as delivery, so it wont be delivered again, how hard is this?

permanent link
answered 08 Jul '16, 13:55
superainovacoes's gravatar image

superainovacoes
3116

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:

×111
×91
×8

question asked: 07 Jun '16, 22:01

question was seen: 1,770 times

last updated: 21 Jul '16, 10:43