iOS SDK Setup

Requirements

  • D·engage Integration Key
  • iOS Push Cerificate
  • iOS Device (you need to test on a real device for notifications)
  • A mac with latest Xcode
  • D·engage Mobil SDK for IOS supports version IOS 10 and later.

1. Installation

Dengage.Framework is available through CocoaPods.

To install it, simply add the following line to your Podfile:

pod 'Dengage.Framework',~> 4.0.7

2. End Point Configuration

For initial setup, if you have given URL addresses by Dengage Support team, you need to setup url address by using Info.Plist file. Otherwise you don’t need to add anything to Info.Plist file

Image

Note: Please see API Endpoints By Datacenter to set your subscription end point.

3. Import SDK

After CocoaPods installation, you can access SDK’s methods by importing

Add the line at the begining of your code file

import Dengage_Framework

Now, you can access SDK methods.

4. How to create an Apple iOS Certificate

4.1 Visit your project account page on Developer Apple and navigate to Certificates, Identifiers & Profiles > Certificates page.

4.2 Navigate to the Keys page. Create a new Keys.

4.3 Enter a key name and select “Apple Push Notifications service (APNs)”. Continue > Register > Download > Done

5. Defining Push Application

5.1 Visit your project account page on Developer Apple and navigate to Certificates, Identifiers & Profiles > Identifiers > Select Your Application page. Copy your Team ID and Bundle ID.

5.2 Visit your project account page on Developer Apple and navigate to Certificates, Identifiers & Profiles > Keys > Select Your Keys page. Copy your Key ID.

5.3 Visit your project account page on Developer Apple and navigate to App Store Connect > Go To App Store Connect page. Select Your Apps > General > App Information > Copy your Apple ID. (For alias area)

5.4 Login your D·engage Panel. Navigate “Settings > Push Applications” page and click the “Add > IOS Application” button.

5.5 Paste your Key ID, Team ID, Bundle ID, Apple ID and upload .p8 file on your D·engage ios app settings page.

5.6 You’ll see an Integration Key which is automatically generated. Keep the key for next steps.