Initializing the Amazon Pinpoint Client

After you have included AWS Mobile SDK for iOS support in your app, which enables
the app to call AWS
services, modify the app code to initialize the Amazon Pinpoint client.

Add the following import to ApplicationDelegate:

Objective-CSwift

Objective-C

#import <AWSPinpoint/AWSPinpoint.h>

Swift

import AWSPinpoint

There are
several
approaches you can use to initialize the Amazon Pinpoint client. Examples of each
approach
follow.

To initialize the Amazon Pinpoint client using the default initializer

In the application:didFinishLaunchingWithOptions: method in the
ApplicationDelegate for your app, initialize the Amazon Pinpoint client with
the Amazon Pinpoint completion block and pass in the launchOptions dictionary to
the Amazon Pinpoint initialization block as follows: