CrossGeeks/FirebasePushNotificationPlugin

MAUI Support

Gekidoku opened this issue ยท 10 comments

๐Ÿ— 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)

  • [x ] ๐Ÿ“ฑ iOS
  • [x ] ๐Ÿค– Android
  • ๐Ÿ WPF
  • ๐ŸŒŽ UWP
  • ๐ŸŽ MacOS
  • ๐Ÿ“บ tvOS
  • [x ] MAUI

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

[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

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.

Hi,

thank you for your work. We are still on XF, but if we upgrade we will test you plugin ๐Ÿ‘

Thanks for your effort. Are there any updates on making it a nuget ? ๐Ÿคž๐Ÿ˜

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

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.

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

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: xamarin/GoogleApisForiOSComponents#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!