I developed an app with MAUI Hybrid Blazor that connects to a server hosted on my PC through Google port forwarding. I have a strange problem though: as soon as I start the app, the request it sends is rejected. However, if I try to reload the ‘page’ through the Google port forwarding tool, the request goes through successfully. And the app also starts to work fine on the phone, any suggestions about this?
I tried modifying the request sending in the code. Initially, a request was sent during the initialization of the Razor component. My attempt was to send a request every second until the response object where I store the incoming data is no longer null or until 10 attempts are exceeded, thinking it was a delay issue, that the app is not instantly ready to send requests, but it didn’t work.
Alessio is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.