RodrigoD
Posts: 0
Joined: Tue Apr 29, 2014 3:57 pm

Error for push notification in Portuguese

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...

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Error for push notification in Portuguese

Hello -

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

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Error for push notification in Portuguese

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

RodrigoD
Posts: 0
Joined: Tue Apr 29, 2014 3:57 pm

Error for push notification in Portuguese

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

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Error for push notification in Portuguese

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?

RodrigoD
Posts: 0
Joined: Tue Apr 29, 2014 3:57 pm

Error for push notification in Portuguese

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

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Error for push notification in Portuguese

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.

Return to “Issues”