iOS set up instructions



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

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

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.

The second step is to Install SDK.

AppflowSDK provides two integration methods for iOS developers to choose from:

  1. Pass through CocoaPods integrated
  2. Pass through Swift package manager integrated

Pass through CocoaPods integrated

target 'MyApp' do
    pod 'AppflowSDK', '~> 1.0.0'

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

Pass through Swift package manager integrated

To add the SDK using Swift's package manager:

  1. Click File.
  2. Select Swift Packages
  3. Select Add Package Dependency.
  4. In the box that appears, enter the SDK's GitHub address.
  5. Select the version of the AppflowSDK you want to use in the Version dropdown. Check the releases page for the latest stable version.

The third step is to Initialize SDK and Set it up

Add configuration file

  1. Download the appflow-app-token.json file, Add to targets to the project.
  2. Select Copy Items if needed.
  3. Create groups.
  4. Add to targets.

import header file

Import the header file in the project's AppDelegate file

import AppflowSDK


func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        //AppflowSDK initialization
        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
    //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



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