[.Net 9.0] Oqtane.Maui 6.0.2 Help wanted #5041
-
Hello everyone, I am new to Oqtane and would like to thank and congratulate you for the amazing work you have done. I am currently trying out the solution, specifically Oqtane.Maui, to potentially propose it to a client for their needs. I have followed all the steps, but I’ve been scratching my head for a while now. I currently have version 6.0.2 installed, and the server, client, and Windows app work fine. However, things are more complicated with the Android emulator (API 35). When I launch the app (the server is already running in another instance of VS), I get an error. It stops in MAUIProgram.cs while enumerating the DLL files in LoadClientAssemblies (line 111) and provides me with the following error in the debug console: blazor.webview.js:1 Connection failure Do you have any ideas to guide me in solving this issue? Additionally, I am wondering whether Oqtane.Maui is still active, as I haven't seen any contributions to the project for a while apart from dependency updates. If I can help in any way with my modest knowledge, it would be a pleasure to contribute to this great project! 😊 Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@Mouss-coder yes, Oqtane.Maui is still active. The reason why there have not been any contributions to Oqtane.Maui recently is because it is just a thin shell for running the main Oqtane project within various native clients using Blazor Hybrid. The error message appears to be a configuration error where the Android client is not able to connect to the backend API. I suggest you step through MauiProgram.cs to see how it retrieves the Url for the backend API. If the Url is correct then the problem could be that the Android emulator does not know how to resolve the Url to a resource on your local machine ie. the emulator is essentially running as an independent process so you need to understand how it is able to access services outside that process. Google "how to configure maui android emulator to access API" |
Beta Was this translation helpful? Give feedback.
@Mouss-coder yes, Oqtane.Maui is still active. The reason why there have not been any contributions to Oqtane.Maui recently is because it is just a thin shell for running the main Oqtane project within various native clients using Blazor Hybrid.
The error message appears to be a configuration error where the Android client is not able to connect to the backend API.
I suggest you step through MauiProgram.cs to see how it retrieves the Url for the backend API.
If the Url is correct then the problem could be that the Android emulator does not know how to resolve the Url to a resource on your local machine ie. the emulator is essentially running as an independent process so you need to unders…