parse-server-modules / parse-server-onesignal-push-adapter

OneSignal push adapter for parse-server
MIT License
32 stars 28 forks source link

Custom data issue #12

Closed MattiaConfalonieri closed 8 years ago

MattiaConfalonieri commented 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

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?

MattiaConfalonieri commented 8 years ago

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.