<div dir="ltr">Which versions of Android, aerogear-android-push, and unified push server are you using?<div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 27, 2016 at 10:20 AM, LinkZ <span dir="ltr">&lt;<a href="mailto:mcrj777@gmail.com" target="_blank">mcrj777@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Folks,<br>
<br>
I am trying to send push notifications using following code...<br>
<br>
*curl:*<br>
&quot;curl -u &quot;XXXXXXXXXXXX&quot; -v -H &quot;Accept: application/json&quot; -H &quot;Content-type:<br>
application/json;charset=UTF-8&quot; -X POST -d &#39;{&quot;alias&quot; : [&quot;<a href="tel:12345678912" value="+12345678912">12345678912</a>&quot;],<br>
&quot;ttl&quot; : 3600, &quot;message&quot;: { &quot;alert&quot;:&quot;Do it faça.&quot;, &quot;sound&quot;:&quot;default&quot;,<br>
&quot;badge&quot;:0, &quot;idNotificacao&quot;:1}}&#39; <a href="http://pushserver.pt/rest/sender" rel="noreferrer" target="_blank">pushserver.pt/rest/sender</a><br>
<br>
*My Handler:*<br>
...<br>
public class NotificationBarMessageHandler implements MessageHandler {<br>
    public static final int NOTIFICATION_ID = 1;<br>
    private Context context;<br>
<br>
    public static final NotificationBarMessageHandler instance = new<br>
NotificationBarMessageHandler();<br>
<br>
    public NotificationBarMessageHandler() {<br>
    }<br>
<br>
    @Override<br>
    public void onMessage(Context context, Bundle bundle) {<br>
        this.context = context;<br>
        //Here I get the message without latin character.<br>
        //message = &quot;Do it faa&quot;.<br>
        String message = bundle.getString(UnifiedPushMessage.ALERT_KEY);<br>
        NFPApplication application = (NFPApplication)<br>
context.getApplicationContext();<br>
        application.addMessage(message);<br>
        notify(bundle);<br>
    }<br>
...<br>
}<br>
<br>
*AndroidManifest*:<br>
...<br>
&lt;receiver<br>
<br>
android:name=&quot;org.jboss.aerogear.android.unifiedpush.gcm.AeroGearGCMMessageReceiver&quot;<br>
    android:permission=&quot;com.google.android.c2dm.permission.SEND&quot;&gt;<br>
    &lt;intent-filter&gt;<br>
        &lt;action android:name=&quot;com.google.android.c2dm.intent.RECEIVE&quot; /&gt;<br>
        &lt;action android:name=&quot;com.google.android.c2dm.intent.REGISTRATION&quot;<br>
/&gt;<br>
        &lt;category android:name=&quot;br.empresa.cliente.projeto&quot; /&gt;<br>
    &lt;/intent-filter&gt;<br>
    &lt;meta-data<br>
        android:name=&quot;DEFAULT_MESSAGE_HANDLER_KEY&quot;<br>
<br>
android:value=&quot;br.empresa.cliente.projeto.handler.NotificationBarMessageHandler&quot;<br>
/&gt;<br>
&lt;/receiver&gt;<br>
...<br>
<br>
*VMOptions*:<br>
...<br>
-Dfile.encoding=UTF-8<br>
...<br>
<br>
When the message is in English, latin charset, everything works. However,<br>
when I try other languages or the character ç, they are deleted from the<br>
string.<br>
<br>
Note: When I test the iPhone everything works fine, but when I test on<br>
Android have this problem to the same message.<br>
It&#39;s encoded in utf-8, my database is MySQL deployed on a Linux server.<br>
<br>
<br>
Thanks in advance.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://aerogear-users.1116366.n5.nabble.com/Latin-Characters-in-Push-Notification-tp767.html" rel="noreferrer" target="_blank">http://aerogear-users.1116366.n5.nabble.com/Latin-Characters-in-Push-Notification-tp767.html</a><br>
Sent from the aerogear-users mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
Aerogear-users mailing list<br>
<a href="mailto:Aerogear-users@lists.jboss.org">Aerogear-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-users" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-users</a><br>
</blockquote></div><br></div>