Skip to content

Instantly share code, notes, and snippets.

@banshee
Created March 9, 2017 23:37
Show Gist options
  • Save banshee/eb7cdd94652e21ca0aeaeb3978c9da06 to your computer and use it in GitHub Desktop.
Save banshee/eb7cdd94652e21ca0aeaeb3978c9da06 to your computer and use it in GitHub Desktop.
This is the manifest that Xamarin creates when you include Xamarin.Firebase.Messaging. It's what you get when you
have this in your base AndroidManifest.xml:
<?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.digium.fcmtest2">
<uses-sdk
android:minSdkVersion="10" />
<application
android:allowBackup="true"
android:icon ="@mipmap/icon"
android:label ="@string/app_name">
</application>
</manifest>
(And notice that the Xamarin web doc does suggest adding xml; that's not done yet)
<?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.digium.fcmtest2"
platformBuildVersionCode="25"
platformBuildVersionName="7.1.1">
<uses-sdk
android:minSdkVersion="10" />
<uses-permission
android:name="android.permission.INTERNET" />
<uses-permission
android:name="android.permission.READ_EXTERNAL_STORAGE" />
<application
android:label="@ref/0x7f07002a"
android:icon="@ref/0x7f030000"
android:name="android.app.Application"
android:debuggable="true"
android:allowBackup="true">
<activity
android:label="FcmTest2"
android:icon="@ref/0x7f030000"
android:name="md5a4df965bb052223b8bffbe8833d28151.MainActivity">
<intent-filter>
<action
android:name="android.intent.action.MAIN" />
<category
android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<service
android:name="md58bfb1aa39469503fb0aae51136235faf.FcmMessagingService">
<intent-filter>
<action
android:name="com.google.firebase.MESSAGING_EVENT" />
</intent-filter>
</service>
<service
android:name="md5a4df965bb052223b8bffbe8833d28151.FcmIdService">
<intent-filter>
<action
android:name="com.google.firebase.INSTANCE_ID_EVENT" />
</intent-filter>
</service>
<provider
android:name="mono.MonoRuntimeProvider"
android:exported="false"
android:authorities="com.digium.fcmtest2.mono.MonoRuntimeProvider.__mono_init__"
android:initOrder="2147483647" />
<receiver
android:name="mono.android.Seppuku">
<intent-filter>
<action
android:name="mono.android.intent.action.SEPPUKU" />
<category
android:name="mono.android.intent.category.SEPPUKU.com.digium.fcmtest2" />
</intent-filter>
</receiver>
<provider
android:name="com.google.firebase.provider.FirebaseInitProvider"
android:exported="false"
android:authorities="com.digium.fcmtest2.firebaseinitprovider"
android:initOrder="100" />
<service
android:name="com.google.firebase.messaging.FirebaseMessagingService"
android:exported="true">
<intent-filter
android:priority="-500">
<action
android:name="com.google.firebase.MESSAGING_EVENT" />
</intent-filter>
</service>
<meta-data
android:name="com.google.android.gms.version"
android:value="@ref/0x7f060000" />
</application>
<uses-permission
android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission
android:name="android.permission.WAKE_LOCK" />
<uses-permission
android:name="com.google.android.c2dm.permission.RECEIVE" />
</manifest>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment