AppsOnAir-AppSync is an iOS CocoaPod that enforces mandatory app updates and manages app state dynamically based on network conditions, ensuring version compliance and optimal performance.
⭐️ Compatible with Objective-C, Swift, and SwiftUI
AppsOnAir-AppSync is available through CocoaPods. To use or install AppsOnAir-AppSync with CocoaPods, simply add the following line to your Podfile:
pod 'AppsOnAir-AppSync'
The Swift Package Manager is a tool for managing the distribution of Swift code. To use AppsOnAir-AppSync with Swift Package Manger, add it to dependencies
in your Package.swift
dependencies: [
.package(url: "https://github.com/apps-on-air/AppsOnAir-iOS-AppSync.git")
]
Minimum deployment target: 12.0
AppsOnAir-AppSync is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'AppsOnAir-AppSync'
Add APIKey in your app info.plist file.
<key>AppsOnAirAPIKey</key>
<string>XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX</string>
how to get APIKey for more details check this URL
Swift Ui / Swift :
# AppsOnAirAppSync class object
let appOnAirSyncService = AppSyncService()
# AppsOnAirCore common services Initialization
appOnAirSyncService.sync(directory: ["showNativeUI":false]) { appUpdateData in
# Write the code here when showNative UI is false
}
Objective C :
@interface AppDelegate ()
@property (nonatomic, strong) AppSyncService *appSyncService;
@end
# App Sync Class instance create
self.appSyncService = [[AppSyncService alloc] init];
# Help to enable sync manager for app with directory for showNativeUi handling and completion method
[self.appSyncService syncWithDirectory:@{@"showNativeUI":@NO} completion:^(NSDictionary *appUpdate) {
# Write the code here when showNative UI is false
}];
devtools-logicwind, [email protected]
AppsOnAir-AppSync is available under the MIT license. See the LICENSE file for more info.
For more details, check out this link