website logo
HomeGo to Dashboard
User Guide
How-To Videos
Developers
Navigate through spaces
⌘K
Getting Started
Introduction
Compatibility
Terminology
SDK Installation
Shopify
Any Website
Dukaan
Angular 2+
WooCommerce
WordPress
Android Native
iOS Native
Flutter
Cordova
Ionic
React Native
Data Integration
Data Models
Mandatory Events
Mandatory Properties
Call to Action
System Events
Device Properties
Docs powered by archbee 

Get Started for IOS

8min

Following are the guidelines for installing Cooee SDK onto your iOS mobile app.

Important!

CooeeSDK is fully developed using Swift language and renders UI with SwiftUI. If your project uses Objective-C language, then you have to add at least one swift file to the project, and XCode will automatically add swift configuration to your project.

Project Level

Add the following in Podfile:

Podfile
|
use_frameworks!
target 'Your target name'
pod 'CooeeSDK', '~> x.y.z'


Replace x.y.z with the latest release of the SDK

Document image


Configure credentials & permissions

Credentials

Add the following snippet in the app level Info.plist:

plist
|
<key>COOEE_APP_ID</key>
<string>MY_COOEE_APP_ID </string>


Replace MY_COOEE_APP_ID & with the App ID which is present at Cooee Portal.

Permission Descriptions

The Cooee SDK uses a few permissions if granted (we do not ask explicitly). Apple requires a user-friendly description of those permissions.

plist
|
<key>NSLocationWhenInUseUsageDescription</key>
<string>App uses location to search retailer location</string>
<key>NSBluetoothAlwaysUsageDescription</key>
<string>App uses Bluetooth to find out nearby devices</string>
<key>NSCameraUsageDescription</key>
<string>Need to access your camera for a better AR experience.</string>


Initialize CooeeSDK in your app

The final step is to add initialization code to your application

Import the CooeeSDK module in your AppDelegate file and call AppController's configure method:

ObjectiveC
Swift
|
#import "CooeeSDK/CooeeSDK-Swift.h"

@implementation AppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    ...
    [AppController configure];
    return ...;
}
@end


That's it! Once you launch the app CooeeSDK will start tracking some default System Events

Updated 03 Mar 2023
Did this page help you?
Yes
No
PREVIOUS
iOS Native
NEXT
Tracking Events on iOS
Docs powered by archbee 
TABLE OF CONTENTS
Important!
Project Level
Configure credentials & permissions
Credentials
Permission Descriptions
Initialize CooeeSDK in your app