Location:

Get AK

How to apply for AK

AK is an important credential for using the IOS SDK. To avoid being stolen, please keep it in a safe place.To apply for AK, please contact lbs@navinfo.com.

Get Bundle ID

The following are two ways to get the Bundle Identifier:

Method 1

Get it by code, the code looks like this:

            NSString *bundleIdentifier = [[NSBundle mainBundle] bundleIdentifier];
        

Method 2

Use AK

Import NavinfoFoundationKit.framework

build phases -> Link Binary With Libraries -> + ->import

NavinfoFoundationKit.framework

How to set APIKEY

Import the authorization SDK header file #import

            <NavinfoFoundationKit/NavinfoFoundationKit.h>
        

Add the following sample code to configure the previously applied AK.

            [[NavinfoCoreService sharedService] setApiKey: @"Enter AK"];
        
TOP