Quickblox, send push notification via REST API -


when trying send push notification:

{'event[environment]': 'development', 'event[notification_type]': 'push', 'event[message]': u'payload=vghpcybpcybhihb1c2ggbm90awzpy2f0aw9uiefqssbuzxn0', 'event[user][ids]': 'xxx', 'token': xxx'} 

i following result api.

{"code":null,"message":"invalid byte sequence in utf-8"} 

the payload base64 encoded string, should work properly. idea what's wrong here?

thanks, phil

it looks message not in correct format:

did encode json object following 1 base64 ?

"aps": { "alert": "some text", "badge": 1, "sound": "default" }  

Comments