You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think there's a common issue with mono wasm and HttpClient. I get a ERROR: Operation is not supported on this platform.
Blazer was able to get it working but its not a normal HttpClient. HttpClient doesnt work with Ooui yet either. Is there a work around that Ive missed?
@davidlsharp1 I missed the real reason. You have a namespace called Wasm and it's taking precedence over Uno.UI.Wasm. Try qualifying it completely Uno.UI.Wasm.WasmHttpHandler.
Activity
zbigniew-gajewski commentedon Jun 15, 2018
@davidlsharp1 - have you seen this closed thread? I haven't tried this but it seems like this is working workaround.
davidlsharp1 commentedon Jun 16, 2018
@zbigniew-gajewski thanks, I'll check it out.
davidlsharp1 commentedon Jun 16, 2018
So does this mean that I should be able to copy that CreateHttp method into my ViewModel?
The WASM part is giving me an error:
The type or namespace name 'WasmHttpHandler' does not exist in the namespace 'unoDemo98.Wasm' (are you missing an assembly reference?)I'm not getting any help with the quick actions . Any idea what I am missing?
jeromelaban commentedon Jun 18, 2018
@davidlsharp1 the WasmHttpHandler is part of the Uno.UI package. Is it included in your project ?
davidlsharp1 commentedon Jun 18, 2018
Hi @jeromelaban. Yes, I added the Uno.UI nuget.
jeromelaban commentedon Jun 18, 2018
@davidlsharp1 I missed the real reason. You have a namespace called
Wasmand it's taking precedence overUno.UI.Wasm. Try qualifying it completelyUno.UI.Wasm.WasmHttpHandler.davidlsharp1 commentedon Jun 18, 2018
@jeromelaban Ah ok. I'll give it a try and report back. Thanks!
jeromelaban commentedon Oct 2, 2018
Support has significantly improved, and this issue has been superseded by #161
MelbourneDeveloper commentedon Feb 17, 2019
@jeromelaban , Hi. I'd like to see if I can get my rest client library working on Platform Uno:
https://github.com/MelbourneDeveloper/RestClient.Net
So, is this still to only way to construct a HttpClient?
I'd be happy to write a version of RestClient.Net that wraps this code so that it's easy to hit a REST service. Is this the recommended approach?
yowl commentedon Feb 18, 2019
I don't think it needs to be that complicated I have
Which is enough for UWP and WASM. Does that not work for ios/android?
MelbourneDeveloper commentedon Feb 18, 2019
@yowl that looks better.
@jeromelaban , how does building libraries from wasm via Uno work? Can Uno directly reference a DLL? A NuGet? Is there documentation on to do this?
garethjhewitt commentedon Jun 27, 2019
I can't seem to get this to work at all.
Using the latest uno template I edit the simple mainpage with a button and label like so:
I can't get any variation (including the above) of this to work at all for wasm. Am I missing something?
Never mind - I realize what happened. This works with Edge - not with the new chromium edge though (yet). Sorry.
Merge pull request unoplatform#42 from unoplatform/dev/jela/hotreload-2
Merge pull request unoplatform#42 from unoplatform/pj/pwa-manifest-work
chore: MOAR LOGGING
chore: MOAR LOGGING