Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 12111

MAUI App - Release mode android build not consuming the API calls

$
0
0

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.

My release mode configuration in .csproj:

`<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net7.0-android|AnyCPU'"><JavaMaximumHeapSize>5G</JavaMaximumHeapSize><PublishTrimmed>False</PublishTrimmed><UseInterpreter>true</UseInterpreter><Optimize>False</Optimize><DebugSymbols>False</DebugSymbols><RunAOTCompilation>False</RunAOTCompilation></PropertyGroup>`

In the above if I set the "DebugSymbols" to "true" then it's working in RELEASE mode.

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. I have raised this issue in many places but still i havent got any proper answer/resolution for this. Someone please provide some insights on this to move further please?


Viewing all articles
Browse latest Browse all 12111

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>