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.

Get Bundle ID

The following are two ways to get the Bundle Identifier:

Method 1

Get it by code, the code looks like this:

  1. 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

  1. <NavinfoFoundationKit/NavinfoFoundationKit.h>

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

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