Select to view content in your preferred language

License Runtime Lite

501
3
Jump to solution
02-21-2025 07:31 AM
Azamat
by
Emerging Contributor

Dears,

I need help. 

Unfortunately, I can't understand about how use license runtime lite to create mobile application on Maui.

I read this -> Get a license | ArcGIS Maps SDK for .NET | Esri Developer and I can get Runtime Lite license string: runtimelite,1000,rudXXXXXX,none,xyzxyzxyzxyzxyz But this license string doesn't work , map is empty in application.

I would like to create easy app and maybe to publish to play market so I'd like to understand how I should move forward and of course use this platform for free in play market.

Thank you very much for your support.

Best regards, Azamat

0 Kudos
2 Solutions

Accepted Solutions
GKmieliauskas
Esri Regular Contributor

Hi,

Have you set API Key?

API key is a permanent token that grants your application access to ArcGIS location services. Create a new API key or access existing API keys from your ArcGIS for Developers dashboard (https://links.esri.com/arcgis-api-keys).

// Provide an access token for your app (usually when the app starts).
Esri.ArcGISRuntime.ArcGISRuntimeEnvironment.ApiKey = "YOUR_ACCESS_TOKEN";

// Create a map with an ArcGIS basemap.
var map = new Map(BasemapStyle.ArcGISNavigation);

// If preferred, you can provide a key directly for the basemap.
//map.Basemap.ApiKey = "YOUR_ACCESS_TOKEN";

Or it could be done MauiApp builder:

        var builder = MauiApp.CreateBuilder();
        builder
            .UseMauiApp<App>()
            .ConfigureFonts(fonts =>
            {
                fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
                fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
            })
            .UseArcGISRuntime(config => config
             .UseLicense("[Your ArcGIS Maps SDK License key]")
              .UseApiKey("[Your ArcGIS location services API Key]")
               .ConfigureAuthentication(auth => auth
                   .UseDefaultChallengeHandler() // Use the default authentication dialog
                // .UseOAuthAuthorizeHandler(myOauthAuthorizationHandler) // Configure a custom OAuth dialog
 
              )
            );

        return builder.Build();

 

 

View solution in original post

dotMorten_esri
Esri Notable Contributor

Yes as  GKmieliauskas says there are also API keys. 
Basically the license key licenses the use of the SDK and removes the watermark from the map control.

The API key is only needed if you want to use ArcGIS Location Services (like the esri vector basemaps etc). So quite often you'll need both. (or if you sign in as a portal user first, the api key won't be needed if that user has access those services)

View solution in original post

3 Replies
GKmieliauskas
Esri Regular Contributor

Hi,

Have you set API Key?

API key is a permanent token that grants your application access to ArcGIS location services. Create a new API key or access existing API keys from your ArcGIS for Developers dashboard (https://links.esri.com/arcgis-api-keys).

// Provide an access token for your app (usually when the app starts).
Esri.ArcGISRuntime.ArcGISRuntimeEnvironment.ApiKey = "YOUR_ACCESS_TOKEN";

// Create a map with an ArcGIS basemap.
var map = new Map(BasemapStyle.ArcGISNavigation);

// If preferred, you can provide a key directly for the basemap.
//map.Basemap.ApiKey = "YOUR_ACCESS_TOKEN";

Or it could be done MauiApp builder:

        var builder = MauiApp.CreateBuilder();
        builder
            .UseMauiApp<App>()
            .ConfigureFonts(fonts =>
            {
                fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
                fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
            })
            .UseArcGISRuntime(config => config
             .UseLicense("[Your ArcGIS Maps SDK License key]")
              .UseApiKey("[Your ArcGIS location services API Key]")
               .ConfigureAuthentication(auth => auth
                   .UseDefaultChallengeHandler() // Use the default authentication dialog
                // .UseOAuthAuthorizeHandler(myOauthAuthorizationHandler) // Configure a custom OAuth dialog
 
              )
            );

        return builder.Build();

 

 

dotMorten_esri
Esri Notable Contributor

Yes as  GKmieliauskas says there are also API keys. 
Basically the license key licenses the use of the SDK and removes the watermark from the map control.

The API key is only needed if you want to use ArcGIS Location Services (like the esri vector basemaps etc). So quite often you'll need both. (or if you sign in as a portal user first, the api key won't be needed if that user has access those services)

Azamat
by
Emerging Contributor

@GKmieliauskas , @dotMorten_esri 

thank you for your answers, your answers are detailed

 

0 Kudos