Closed MattiaConfalonieri closed 8 years ago
If you have a custom data inside push not the adapter not convert it in the proper way... that because OneSignal use AdditionalData to send data.
Here my code:
arse.Push.send({ where: pushQuery, // Set our Installation query data: { alert: request.object.get("username")+" su "+request.object.get("title")+": "+request.object.get("text"), badge: 0, sound: 'newCommentSND.caf', cheNotifica:'commento', riferimento:request.object.get("parent"), tipo:request.object.get("title") } }, { useMasterKey: true}).then(() => { // Push was successful console.log('##### PUSH OK'); }, (error) => { console.log(error); }); This datas
arse.Push.send({ where: pushQuery, // Set our Installation query data: { alert: request.object.get("username")+" su "+request.object.get("title")+": "+request.object.get("text"), badge: 0, sound: 'newCommentSND.caf', cheNotifica:'commento', riferimento:request.object.get("parent"), tipo:request.object.get("title") } }, { useMasterKey: true}).then(() => { // Push was successful console.log('##### PUSH OK'); }, (error) => { console.log(error); });
cheNotifica:'commento', riferimento:request.object.get("parent"), tipo:request.object.get("title")
Read in the notification dictionary of the app, say the app with do when receive notification... with one signal adapter they are not read... Any idea how to solve that?
If someone have the same problem, can contact one signal team and ask to enable alternative aps payload for your app, that's solve the problem.
If you have a custom data inside push not the adapter not convert it in the proper way... that because OneSignal use AdditionalData to send data.
Here my code:
arse.Push.send({ where: pushQuery, // Set our Installation query data: { alert: request.object.get("username")+" su "+request.object.get("title")+": "+request.object.get("text"), badge: 0, sound: 'newCommentSND.caf', cheNotifica:'commento', riferimento:request.object.get("parent"), tipo:request.object.get("title") } }, { useMasterKey: true}).then(() => { // Push was successful console.log('##### PUSH OK'); }, (error) => { console.log(error); });
This datascheNotifica:'commento', riferimento:request.object.get("parent"), tipo:request.object.get("title")
Read in the notification dictionary of the app, say the app with do when receive notification... with one signal adapter they are not read... Any idea how to solve that?