I am having issue with push utf8 encode message using Parse Rest, here is my body
{"where":{"$and":[{"email":{"$in":["[email protected]","[email protected]"]}},{"deviceType":{"$in":["ios"]}}]},"data":{"alert":"TEST: Giảm 40% Khi Mua Sách Harry Potter","sound":"default","page_type":"cms_key","page_value":"harry-potter"}}
Does anyone know how to encode utf8 message?
Javascript code:
public bool SendPushNotification(string jsonContent)
{
...
request.Headers.Add("X-Parse-Application-Id", appId);
request.Headers.Add("X-Parse-REST-API-KEY", restApiKey);
System.Text.UTF8Encoding encoding = new System.Text.UTF8Encoding();
Byte[] byteArray = encoding.GetBytes(jsonContent);
...
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With