Page 1 of 1

Error for push notification in Portuguese

Posted: Mon May 05, 2014 8:15 pm
by RodrigoD

I am trying to send a notification from an app. The notification works just fine witha simple "Hello wold" .If I put the message in Portuguese I get a serialization error.

The message is "ParabĂ©ns, vocĂȘ acaba de receber pontos".

The same code with a "Helo world" works...


Error for push notification in Portuguese

Posted: Tue May 06, 2014 3:15 am
by Illya Stepanov

Hello -

We will test this case and update you when we got more information.


Error for push notification in Portuguese

Posted: Tue May 06, 2014 5:23 am
by Illya Stepanov

Could you please share your app with us, we will test it?
:: http://docs.appery.io/documentation/s...


Error for push notification in Portuguese

Posted: Tue May 06, 2014 11:36 am
by RodrigoD

My best guess was that it has something to do with the charset.
I included the chartset in the header but I still get the same error.

Here is my code:

code
private string EnviarNotificacao(string deviceId,string mensagem) {
PushNotification notification = new PushNotification();
notification.payload = new Payload { badge = 1, message = mensagem };
notification.status = "sent&quot
notification.filter = new Filter { deviceID = deviceId };

Code: Select all

         string jsonString = JsonConvert.SerializeObject(notification); 
         string url = "https://api.appery.io/rest/push/msg&quot 
         using (WebClient client = new WebClient()) 
         { 
             client.Headers.Add("X-Appery-Push-API-Key", pushApkiKey); 
             client.Headers[HttpRequestHeader.ContentType] = "application/json&quot 
             try 
             { 
                 client.UploadString(url, "POST", jsonString); 
             } 
             catch (Exception) 
             { 
                 MessageBox.Show("Erro ao enviar mensagem"); 
             } 
         } 
         return jsonString; 

}
/code


Error for push notification in Portuguese

Posted: Wed May 07, 2014 1:24 pm
by Illya Stepanov

Hi Rodrigo -

Could you please share your app with: a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a ?
This could be some issue related to your app.

Also please tell us how exactly and on what device you're testing? What OS version is installed on the device?


Error for push notification in Portuguese

Posted: Wed May 07, 2014 1:34 pm
by RodrigoD

The app is a .net app not an app in appery.io.
The relevant code is posted .


Error for push notification in Portuguese

Posted: Wed May 07, 2014 2:53 pm
by Illya Stepanov

Sorry, this is outside the scope of our support.

If you have any problems with JavaScript code in your Appery.io app, let us know and we'll test it.