Gekidoku / BetterFireBaseNotificationsPlugin

Attempting to upgrade CrossFireBasePlugin to MAUI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sample App ?

developer9969 opened this issue · comments

Hi
Like you I would like to use the plugin in .net 7 and soon .net 8. I see that you have made a plugin that supports Maui.
Do you have a sample androidManifest.xml and what you put there.

Or even better a sample maui app where I can just replace the google-services.json.

Anyways thanks for your effort

I will work on a sample app.
For now i will show what i added to my manifest.
this is inherited from my xamarin forms app so dont even know if i need it all still.

	<application android:label="MyAppName" android:usesCleartextTraffic="true" android:extractNativeLibs="true" android:largeHeap="true">
		<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">
			<meta-data android:name="com.google.firebase.messaging.default_notification_channel_id" android:value="MyDefaultChannel" />
			<intent-filter>
				<action android:name="com.google.android.c2dm.intent.RECEIVE" />
				<action android:name="com.google.android.c2dm.intent.REGISTRATION" />
				<category android:name="com.MyApp" />
			</intent-filter>
		</receiver>
	
	</application>

When i have time i will make a sample app and add it to this repo

"Great work! I would really like to try it out on a minimal sample app too. I've spent a lot of time trying to get this https://github.com/mistrypragnesh40/PushNotificationDemoMAUI to work, but OnNewToken(string token) is never called, and it's driving me insane..."

+1 A sample app is needed, I have trouble using it.