Open ktaze1 opened 3 years ago
Sorry you're running into this! I doubt this was intentional, but let me tell you, getting WebView to work is not easy, so I wouldn't be surprised if this accidentally changed.
This could be related to something that @jspuij is working on fixing. On Android in particular the order of operations in .NET is quite different from what one might normally expect, so sometimes you can get these weird disposed errors.
I'll try to reproduce this particular issue so that we can investigate further.
@ktaze1 I see you're using Auth already, nice job! Could you point us to the repo if it's public? This would save us so much time!
Since there was no Auth before I had to use a custom one. Here is a link to repo: https://github.com/ktaze1/CugemderMobileApp. It's mostly in Turkish and sorry for some spaghetti code along the way.
Thank you. We'll investigate an let you know.
Also find out that when trying to access non-existing page, rather than showing "Sorry, there's nothing at this address." from Router
's NotFound
tag in App.razor
, it crashes app with **System.ObjectDisposedException:** 'Cannot access a disposed object.Object name: 'Android.Webkit.WebView'.'
Worth to point out that whenever there is a property waiting for a data from a database, app inconsistently crashes giving this error:
This error message shows the line where GetFromJsonAsync
method is called. It mostly works, but not always.
Hello. Before preview 5, I had a working page but after migration I notice this change, I don't know if it's intended or a bug so here we go:
There is a setting page on my project where users can change their information. In here I just receive the user from a remote server, show the information with
EditForm
and whenOnValidSubmit
happens I send a PUT request.As I said, this page worked as intended before. Now after migration, this page doesn't work. First I had
**System.ObjectDisposedException:** 'Cannot access a disposed object.Object name: 'Android.Webkit.WebView'.'
error then I seeInvalidOperationException: EditForm requires a Model parameter, or an EditContext parameter, but not both.
error. After a little research, I found out that I had to initialize the variables beforehand. After changingprivate AspNetUsers user;
toprivate AspNetUsers user = new AspNetUsers();
(and of course other variables too) page worked perfectly. Was this intentional?