firebase – sending push notification to xamarin android via postman


I am using azure push notifications. Its successfully test send message from azure to xamarin forms app. but when i use postman to show it my status 200 OK. But xamarin android is not getting push notification. this is my AndroidManifest file

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="com.android.app" android:allowBackup="false" android:installLocation="auto">
    <uses-sdk android:minSdkVersion="24" android:targetSdkVersion="29" />
  <uses-permission android:name="android.permission.INTERNET" />
  <uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
  <uses-permission android:name="android.permission.WAKE_LOCK" />
  <uses-permission android:name="android.permission.GET_ACCOUNTS" />

    <application android:label="PushDemo.Android">
    <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}"></category>
      </intent-filter>
    </receiver>
  </application>
    <uses-permission android:name="android.permission.READ_PHONE_STATE" />
</manifest>



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *