Add the following to the pod file.
pod 'AFSDK'
pod install
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.
- 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
[[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 [email protected] for any issues with integration.