-
-
Notifications
You must be signed in to change notification settings - Fork 160
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
WASM / Xamarin Forms - HttpClient doesn't work #146
Comments
Unfortunately this might be a mono limitation. I will ask them what the best way to do HTTP is. |
Thanks. No worries, I am just testing your library (I am interested in Ooui.Wasm/Forms only) trying to understand the concept in comparison to Silverlight (and have a lot of fun). Of course 'data access' is necessary, especially HttpClient, which is probably used by another library I am testing - Breeze.Sharp ported to .Net Standard 2.0 ('probably', because I am getting the same error using this library). BTW, I have found this thread: xaml-Standard - people really miss something similar to Silverlight, which (imho) is your great Ooui.Wasm/Forms lib. |
I have noticed that mono has published a new release 5.12.0 Preview (5.12.0.223) where some significant changes have been made which might affect HttpClient issues (Class Libraries section). Would it be possible to use this version of mono in the next release of ooui (just to check whether it would help to make HttpClient working)? |
I missed my chance to catch you after the Forms 3.0 talk at Build to make sure I understand this correctly now that the missing Mono forwarders from #96 aren't an issue 😁, but do you think it may be necessary to do what Blazor did and write a custom |
@zbigniew-gajewski I think I'm following your same path because I am hitting this error now too. :) This is a fun framework and not the end of the world but HttpClient or something similar would be really nice. |
@davidlsharp1 - indeed fun framework, especially for Silverlight addict :) . HttpClient is a must, but as @praeclarum pointed out this is mono/Wasm problem, not Ooui. I am waiting for the next Ooui.Wasm with new mono version included. Another 'nice thing' would be UI controls with mouse support (as important as data access). Fortunately companies like Telerik/Progress is taking it into account: xamarin-forms-on-the-web (user voice page). |
That's a great article with props to Frank. Can somebody help me understand the mono problem with HttpClient? Is it specifically a wasm problem? |
Any updates on this? We are getting PlatformNotSupportedException when doing a simple HttpClient.GetAsync(). |
I am wondering if this has been fixed or is supposed to be fixed at all? |
Yeah, the updated WASM should have HTTP support. I'll try to get that update PR in... |
Ooui, Ooui.Wasm, Ooui.Forms 0.10.222.
The code:
Browser console shows error:
System.PlatformNotSupportedException: Operation is not supported on this platform.
The whole error message:
The text was updated successfully, but these errors were encountered: