Skip to content

appsflyio/ios-sdk-integration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 

Repository files navigation

How to integrate the Appsfly Ios Utils

Step 1

Add Cocoapods:

Add the following to the pod file.

pod 'AFSDK'

Step 2

Install the pod by running below command

pod install

Step 3

Generated Secret-key

Obtain a unique secret key from Appsfly.io (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx). To keep the secret key secure, it is recommended to follow the below steps.

  1. Place this code in the Appdelegate file of the Ios Project.
    [[AFAppsflyProvider defaultProvider] 
    configureWithAppKey:@"APP_KEY"
    andRepoUrl:@"https://hub.appsfly.io/executor/fetch-build"];
    //Replace APP_KEY
    

Step 4

  [[AFAppsflyProvider defaultProvider] syncMicroApps:handles withCompletion:^(NSError * _Nullable error) {
            [[AFMicroAppProvider defaultProvider] presentMicroApp:@"MICRO-APP-HANDLE" OverController:self withIntent:@"INTENT-NAME" andData:@{INTENT-DATA}];
            self.loadButton.enabled = TRUE;
            if (!error) {
              -----
            }
        }];
//Replace MICRO-APP-HANDLE,INTENT-NAME & INTENT-DATA

Note: Contact the integrations@appsfly.io for any issues with integration.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published