Forum Xamarin.Forms

Finally i got to receiver push notification

pnet1pnet1 USMember ✭✭✭✭

The issue it was in Manifest.xml file. I updated that file, inserting this code snippet:

 <receiver
    android:name="com.google.firebase.iid.FirebaseInstanceIdInternalReceiver"
    android:exported="false" />
    <receiver
        android:name="com.google.firebase.iid.FirebaseInstanceIdReceiver"
        android:exported="true"
        android:permission="com.google.android.c2dm.permission.SEND">
      <intent-filter>
        <action android:name="com.google.android.c2dm.intent.RECEIVE" />
        <action android:name="com.google.android.c2dm.intent.REGISTRATION" />
        <category android:name="${applicationId}" />
      </intent-filter>
    </receiver>

The code above i copied from internet. Is there one way to configure my AndroidManifest.xml file in according with my project? The message is arriving no formmated, see the screenshot below:

Where is wrote Solicitação de novo desconto, this is my notification, is write in the message in addition to the title:

google.c.a.c_l=c v google.c.a.udt=0 google.send...

What's this? How can i do to format that notification to show Title and Body only?

Tagged:

Answers

  • pnet1pnet1 USMember ✭✭✭✭

    How can i do to format the messages sent to my App? Now i receive this way:

    Solicitação de novo desconto
    google.c.a.c_l=c v google.c.a.udt=0 google.send...

    and i'd like to receive this way:

    Solicitação de novo desconto
    Novo desconto loja 7

Sign In or Register to comment.