Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAUI Support #469

Open
4 tasks
Gekidoku opened this issue Aug 17, 2023 · 10 comments
Open
4 tasks

MAUI Support #469

Gekidoku opened this issue Aug 17, 2023 · 10 comments

Comments

@Gekidoku
Copy link

Gekidoku commented Aug 17, 2023

🏗 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
@Gekidoku
Copy link
Author

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
Copy link
Author

[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
Copy link
Author

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
Copy link
Contributor

Hi,

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

@AldairOrta
Copy link

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

@Gekidoku
Copy link
Author

Gekidoku commented Sep 7, 2023

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
Copy link

thomasgalliker commented Feb 27, 2024

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
Copy link
Author

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
Copy link
Contributor

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!

@thomasgalliker
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants