Appflow.ai
Visit our websitePricingSign up for freeLog in
  • GET STARTED
    • What is Appflow.ai?
    • Quickstart - How to start working with Appflow.ai?
    • FAQ
    • Ownership and other roles
  • SDK Set-up Instructions
    • Android SDK
      • Google Play Store Credentials
        • Google Service Account Key
        • Google real-time developer notifications(RTDN)
        • FCM server key(optional)(to be updated)
      • Events (Custom events)
      • Purchases
      • Visual constructor
      • User info
      • Push notifications
    • iOS SDK
      • Specify Apple Store Keys
      • Purchases and User Info
      • Event tracking (Custom events)
      • Push Notifications Configuration
      • Visual constructor
  • IN-APP PURCHASE
    • SKU adding
  • METRICS & EVENTS
    • Calculations of Analytics
    • Terms and Descriptions
    • Purchase Events
    • In-app Events
    • Events Structure
    • End-users Attributes
    • Users' statuses
  • SUBSCRIPTION ANALYTICS
    • Dashboard
    • Configurator
    • Reports
    • A/B Testing
    • Integrations
    • Create Push-notifications
    • In-app Messages
    • Return of Advertisement
    • Funnels
    • Funnel 2.0 BETA
    • Entitlements
    • Visual Constructor
  • INTEGRATIONS
    • Adjust
    • Appsflyer
    • Mixpanel
    • Webhooks
    • Apple Search Ads Attributions
    • Branch
    • Amplitude
  • OTHERS
    • Pricing plans and important information about your payments
    • Storing your data
    • Privacy Policy
    • Terms of Use
    • Unsubscribe from Appflow.ai
Powered by GitBook
On this page
  • 1. Download app token
  • 2. Install SDK
  • 3. Initialize SDK

Was this helpful?

  1. SDK Set-up Instructions

iOS SDK

PreviousPush notificationsNextSpecify Apple Store Keys

Last updated 1 year ago

Was this helpful?

Warning!

Please note! We will be not able to receive and show your data without this step!

To connect your iOS app to Appflow.ai console you need to follow 3 steps during onboarding or using Settings=>Applications=>New Application

1. Download app token

First step is to download the app token. Download this file and put into the root of your Xcode project. If prompted, select to add the config file to all targets.

2. Install SDK

The second step is to install SDK. AppflowSDK provides only one integration method for iOS developers: Pass through CocoaPods integrated

Pass through CocoaPods integrated

target 'MyApp' do
    use_frameworks!
    pod 'AppflowSDK', '~> 1.0.7'
end

Save and execute pod install, then open the project with a file suffixed with .xcworkspace.

pod install

Notice: Execute pod search AppflowSDK under the command line. If the displayed version of AppflowSDK is not the latest, execute the pod repo update operation to update the content of the local repo. For more information on CocoaPods please see https://cocoapods.org/

3. Initialize SDK

The third step is to Initialize SDK and Set it up

Add configuration file

a. Download the appflow-app-token.json file, Add to targets to the project.

b. Select Copy Items if needed.

c. Create groups.

d. Add to targets.

import header file

Import the header file in the project's AppDelegate file

import AppflowSDK

Setup

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
    //AppflowSDK initialization
    Appflow.shared.configure()
    return true
}

Enable SDK log (optional)

You can enable SDK log output before initializing the SDK

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
    // Override point for customization after application launch.

    //AppflowSDK initialization
    Appflow.shared.configure()
    //Whether to enable in-app purchase related logs, the default is not
    Appflow.shared.setPurchasesLogs(enabled: true)
    //Whether to enable the log related to the buried point, the default is not
    Appflow.shared.setAnalyticsLogs(enabled: true)
    return true
}

CALL APIs

To get all info, please, follow the next steps of the release checklist so you will get all data into the dashboard

Note

Please, also follow the next step - adding keys for the RTDN access