MAUI Android App fails to load the API calls in RELEASE mode

Dharunkumar A 0 Reputation points
2024-05-10T14:55:51.3866667+00:00

I have a MAUI project that functions well on both Android and iOS platforms. The project involves consuming API calls using a DLL called TRIMModel.dll to make GET/POST requests.

While the app operates smoothly in iOS for both debug and release modes, I'm encountering an issue on Android. Specifically, the API calls fail to work in RELEASE mode, though they function correctly in DEBUG mode.

I've attempted several troubleshooting steps, including disabling AOT and Trimming in the project, and enabling Debug Symbols, which resolved the issue in RELEASE mode. However, enabling Debug Symbols violates our security standards and prevents the app from being deployed on the Play Store.

I'm perplexed as to why this problem is isolated to Android RELEASE mode and has persisted for several months. I'm seeking a solution or further troubleshooting steps to resolve this issue promptly.

This is a huge blocker for us, can someone please help on this?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,963 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,130 questions
Microsoft Intune Android
Microsoft Intune Android
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Android: An open-source mobile platform based on the Linux kernel, developed by Google, and maintained by the Open Handset Alliance.
241 questions
{count} votes