Skip to content Skip to sidebar Skip to footer

How To Implement Push Notification For Xamarin Android

I tried to follow the tutorial: Push notifications to Xamarin.Android (the iOS part works already) But I get the following error at build time: The 'ProcessGoogleServicesJson' tas

Solution 1:

So I'm not quite sure why I got that error. But after updating visual studio from v15.7.1 to v15.7.2 the error was gone. It could be, that a restart of visual studio was the solution? In the tutorial it say's you have to restart vs if you can't select the Build Action "GoogleServiceJson". Perhaps you have to restart it anyway.

For android:name="${applicationId}" I used the same as in "package" out of the "manifest" line in the AndroidManifest.

<?xml version="1.0" encoding="utf-8"?><manifestxmlns:android="http://schemas.android.com/apk/res/android"android:versionCode="3"android:versionName="1.2"package="com.xxxxx.ServiceToolStandard"android:installLocation="auto">
[...]
<applicationandroid:label="ServiceToolStandard"android:icon="@drawable/icon"><receiverandroid:name="com.google.firebase.iid.FirebaseInstanceIdInternalReceiver"android:exported="false" /><receiverandroid:name="com.google.firebase.iid.FirebaseInstanceIdReceiver"android:exported="true"android:permission="com.google.android.c2dm.permission.SEND"><intent-filter><actionandroid:name="com.google.android.c2dm.intent.RECEIVE" /><actionandroid:name="com.google.android.c2dm.intent.REGISTRATION" /><categoryandroid:name="com.xxxxx.ServiceToolStandard" /></intent-filter></receiver></application>

Now I can build and run the application. Also the push notifications from the Azure-"Test send" are received correctly.

Post a Comment for "How To Implement Push Notification For Xamarin Android"