I am developing a .NET MAUI app that connects to an ASP.NET Core Web API using Visual Studio Dev Tunnels for local development. Initially, the connection works perfectly, and the app communicates with the API as expected. However, after some time, the app stops connecting to the API. This issue occurs intermittently—sometimes it works one day and then stops the next day, and so on.
Here’s what I’ve tried so far: Verified that the Dev Tunnel is active and accessible from a browser on the same machine. Ensured that the API URL matches the Dev Tunnel address (using HTTPS). Restarted both the API and the MAUI app, but the issue persists after a while. Tested on an Android device (not emulator), with the same results.
Environment Details: MAUI Version: (mention the exact version you are using) ASP.NET Core Version: (mention your framework version, e.g., 6.0, 7.0, etc.) Visual Studio Version: (e.g., Visual Studio 2022 v17.x) Device: Samsung SM-A528B (Android 13, API Level 33) Dev Tunnel Configuration: HTTPS enabled