push notification - Unsubscribe from channel via REST API in Parse -


does know how unsubscribe channel or channels in parse via rest api? documentation have update channels array, not working me or i'm doing wrong.

thanks

there's section of documentation shows adding channel:

https://parse.com/docs/rest#installations-updating

you need put whole contents of installation including existing channels, plus new one.

alternatively can make atomic changes channels array described in section of docs under "arrays" heading:

https://parse.com/docs/rest#objects-updating

as shown there can use add, addunique , remove. add single channel you're best using addunique.

so, answer question, can use remove single channel or couple of channels using following parameters:

{"channels":{"__op":"remove","objects":["channel 1","channel 2"]}} 

to remove channels perform update channels set default, e.g:

{     "devicetype": "ios",     "devicetoken": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",     "channels": [         ""     ] } 

Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -