-
Notifications
You must be signed in to change notification settings - Fork 1.7k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
We can create plugin that do not need to call Plugin.Init() to each plaform.. #293
Comments
What problem would it solve? Except add a new useless black box that will make a lot of problem. |
It will make it easier for people to use the framework. Even if you have experience with XAML/C#/ the .NET ecosystem, this whole plugin initialization system is something quite unique to Xamarin. In all other frameworks, you add the package and then you just use it. In Xamarin, no, you first need to go to some file - in the happy case it's just Removing this requirement for the developers, makes it easier for people new to the framework to onboard / get going using existing knowledge, without needing to know quirks for even the simplest of plugins. |
Today, on the XF project you don't need the Update |
Glad to hear that, I must admit I don't have much experience on the plugin development side and my experience as an app developer with almost - if not all - plugins is that you need to make some sort of initialization call. Not sure if the plugin developers are just lazy (for the lack of a better word) or it's some sort of limitations they are hitting. Just to give one example - FFImageLoading - in their Xamarin.Forms getting started guide, in Step 2 they have you add |
Not that I know for certain, but the If MAUI offers a |
@REscobar with .net 5 there are module initializers. |
Thanks good to know, somehow that escaped me. I can see that some plugins may opt to initialize that way, but I think that there will be scenarios where that is not possible, like requiring a reference to some application context. Just to be clear, having to call an Is MAUI getting a |
@nextcodelab and if the plugin needs to do a custom initialization? Like an |
Remember that the concepts of plugins as they are in Flutter doesn't exist in Xamarin or Maui. |
I think it is not necessary to invent something new but just use Module Initializers of C # 9.0. |
Call Global Context
|
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
in xamarin form we need to call pluginsInit() in app start.. I hope Maui.net the user do not need to write it app start Init PlugIn(). like flutter it automatically generate Init plugins when building by tools...
The text was updated successfully, but these errors were encountered: