CrossGeeks / FirebasePushNotificationPlugin

Firebase Push Notification Plugin for Xamarin iOS and Android
MIT License
396 stars 178 forks source link

MAUI Support #469

Open Gekidoku opened 1 year ago

Gekidoku commented 1 year ago

🏗 Enhancement Proposal

Im currently maintaining / developing a pretty big xamarin app that relies on this library for a few core functionalities. Mainly UserActions in the notifications and more importantly the ability to send silent notifications.

Pitch

I would like for a MAUI version of this library. I started converting it to a maui class library but for some reason I get a bunch of androidX.lifecycle related errors on building with this converted library in my references.

https://github.com/Gekidoku/BetterFireBasePlugin

Platforms affected (mark all that apply)

Gekidoku commented 1 year ago

I now have the library sofar that i can recieve a firebase token. However its not responding to incomming messages in any way. Think that this is mostly due to my inexperience with maui

Gekidoku commented 1 year ago

[NTMedewerkerApp] Accessing hidden method Landroid/os/WorkSource;->add(I)Z (unsupported,test-api, reflection, allowed) [NTMedewerkerApp] Accessing hidden method Landroid/os/WorkSource;->add(ILjava/lang/String;)Z (unsupported,test-api, reflection, allowed) [NTMedewerkerApp] Accessing hidden method Landroid/os/WorkSource;->get(I)I (unsupported, reflection, allowed) [NTMedewerkerApp] Accessing hidden method Landroid/os/WorkSource;->getName(I)Ljava/lang/String; (unsupported, reflection, allowed)

is the only thing that i see appearing in the output window when i send a test message to myself

Gekidoku commented 1 year ago

Good news everyone, https://github.com/Gekidoku/BetterFireBasePlugin I got it working as a project reference. can now recieve push notifications and have user actions. Testing silent background notifications now. Its sometimes a bit inconsistent with calling the android oncreate but looking into it.

AlleSchonWeg commented 1 year ago

Hi,

thank you for your work. We are still on XF, but if we upgrade we will test you plugin 👍

AldairOrta commented 1 year ago

Thanks for your effort. Are there any updates on making it a nuget ? 🤞😁

Gekidoku commented 1 year ago

At the moment very busy with converting my xamarin forms app to Maui. When I'm done I'll see if I have time to convert it to a nuget

thomasgalliker commented 8 months ago

We've done a complete refactoring of the firebase push notification plugin to support .NET 7 and later. You'll find the work-in-progress here: https://github.com/thomasgalliker/Plugin.FirebasePushNotifications and a nuget package is published on nuget.org.

Gekidoku commented 8 months ago

As you can see there is quite some time between our responses. so i had already converted this library to maui .net 8 for my own use. https://github.com/Gekidoku/BetterFireBaseNotificationsPlugin

AlleSchonWeg commented 8 months ago

Hi @thomasgalliker and @Gekidoku , thank you for your work! Perhaps you can work together and combine it into one plugin. But the main problem are the iOS Firebase bindings, which your plugin depends on. These are not maintained and if this issue: https://github.com/xamarin/GoogleApisForiOSComponents/issues/647 is true iOS will stop working after June 2024. Do you also plan to create your own iOS firebase bindings to keep the plugin working?

Thank you!

thomasgalliker commented 2 months ago

https://www.nuget.org/packages/Plugin.FirebasePushNotifications has stable MAUI support now. Thanks everyone for reporting problems + giving feedback 🙏🏻