Daddoon / Xamarin.Android.GeckoView

A NuGet package and an example project to embed a GeckoView in your Xamarin Android App
MIT License
4 stars 1 forks source link

Geckoview at Api level 29 or upper, not working #25

Closed ghost closed 2 years ago

ghost commented 3 years ago

Hi @Daddoon

Hope you are doing well.....

I am working with Geckoview in blazor for android on the API level 29 is not working. Only display white screen. Error comes on the output list is "[GeckoConsole] [JavaScript Error: "TypeError: state is undefined" {file: "resource://gre/modules/addons/XPIProvider.jsm" line: 2717}]"

When I am using Geckoview in blazor for android on the API level 28 or below of the API level 28 its working fine.

Error Working

please guide me.

Daddoon commented 3 years ago

As i said on the BlazorMobile github project i don't have time at the moment to fix this issue. Maybe in October, i don't know. The issue on API 29 is related to a bug on GeckoView on new Android versions, on how architecture images are managed.

In order to fix this issue, the current GeckoView 69 AAR image should be updated to GeckoView 77 or better. However, there is some Android bindings to rewrite, and so the analysis on my side can take some time.

An other fix in the meantime would be to load BlazorMobile on the regular Android browser in Xamarin if API 29 or better is detected, meaning loading a Chrome view instead of a GeckoView, but maybe some behaviors may miss.

Daddoon commented 2 years ago

You may consider to migrate to .NET MAUI in the future for your app: https://docs.microsoft.com/en-us/shows/XamarinShow/Introduction-to-NET-MAUI-Blazor--The-Xamarin-Show

https://github.com/dotnet/maui