parse-server icon indicating copy to clipboard operation
parse-server copied to clipboard

Push Notification data payload may contain JSON, stringify before inserting into _PushStatus collection?

Open alanphoon opened this issue 10 years ago • 3 comments

Data payloads for push notifications may contain JSON. In this scenario, it can break the _PushStatus object for that push notification when being inserted into DB.

Before inserting into _PushStatus collection, can we stringify the data payload? i.e. payload: JSON.stringify(body.data) Thanks.

alanphoon avatar Apr 11 '16 22:04 alanphoon

@drew-gross this may imply an update on parse-dashboard.

flovilmart avatar Apr 11 '16 23:04 flovilmart

Parse Dashboard currently doesn't do anything with push statuses, so probably not?

drew-gross avatar Apr 11 '16 23:04 drew-gross

Alright! I'll make the change then.

flovilmart avatar Apr 11 '16 23:04 flovilmart