Hello Esri Community,
I using Xamarin.Android (not Xamarin.Forms) combined with the .NET ArcGIS Runtime nuGet package in the context of a mobile app development in C#. I actually have a Visual Studio solution containing 2 items:
- An Android project (Xamarin.Android) using nuGet package Esri.ArcGISRuntime.Xamarin.Android
- A C# class library using nuGet package Esri.ArcGISRuntime (this library is used by the Android Project)
I encounter issues regarding the basemaps.
First, in the context of the Debug build of my Android app, the basemaps are not displayed at all in the case I do not specify my ArcGIS licence key (Lite licence) in the code (note that they are well displayed when I specify my licence key). I expected a "For debug use only" watermark on top of the map view instead but maybe it's the normal behavior, is it?
Secondly, the basemaps are not displayed neither in the Release build of my mobile app whether I enter my ArcGIS licence key or not.
Here are 2 attached screenshots (with and without basemaps).
I do the testing both on a real smartphone and a virtual smartphone.
Real smartphone: Xiaomi 9T Pro (Android version 11)
Virtual smartphone (Android emulator): Pixel 5 (Android version 11)
In the case of the virtual smartphone, the Release version of my app doesn't even respond (white screen) whereas in the case of the real smartphone, the app starts correctly and only the basemaps are not displayed.
And regarding the output logs, I did not noticed any related error messages unfortunately. Any ideas?
More details about my current configuration:
IDE: Microsoft Visual Studio 2022
.NET Standard 2.1 (for my C# class library)
Minimum Android version: 4.4.87
Target Android version: 12.0
nuGet package Xamarin.Essentials 1.7.2
nuGet package Esri.ArcGISRuntime 100.14.0 (for my C# class library)
nuGet package Esri.ArcGISRuntime.Xamarin.Android 100.14.0
Any help would be greatly appreciated. Thanks a lot.