AppInfo
AppInfo
is utility object which contains app name and version. Whenever you make a request to Scantrust backend via
APIManager
, app details are fetched from AppInfo
and passed to backend.
Scantrust backend have custom app name for each company registered in our portal. Please contact support to get to know your app name.
Basic Usage
Before making any calls via APIManager
, you must setup the AppInfo
with app name and version.
Recommended place to setup app info is didFinishLaunchingWithOptions
in AppDelegate
.
- Swift
- Objective-C
AppInfo.setupAppInfo(withName: "ScantrustSDKDemo", version: "1.0")
[AppInfo setupAppInfoWithName:@"ScantrustSDKDemo" version:@"1.0"];