<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
<!-- if you get custom server URL from +SAW Support team, then change this server URL key with the provided api endpoint base url -->
<key>SERVER_URL</key>
<string>${SERVER_URL}</string>
<!-- Change API key in place of test which you have received from +SAW console console -->
<key>API_KEY</key>
<string>Replace your App Key</string>
<!-- Change Secret key in place of test which you have received from +SAW console console -->
<key>SECRET_KEY</key>
<string>Replace your secret key</string>
<key>NSCameraUsageDescription</key>
<string>$(PRODUCT_NAME) app wants to access your video camera for record video and edit for that</string>
<key>NSPhotoLibraryAddUsageDescription</key>
<string>$(PRODUCT_NAME) app wants to save pictures and videos to your library and edit for that</string>
<key>NSMicrophoneUsageDescription</key>
<string>$(PRODUCT_NAME) app wants to access your microphone to record audio with video</string>
<key>NSUserTrackingUsageDescription</key>
<string>$(PRODUCT_NAME) will be used to deliver personalized ads to you.</string>
<key>GADApplicationIdentifier</key>
<string>ca-app-pub-3893727616817499~4911050982</string>
<key>LSApplicationQueriesSchemes</key>
<array>
<string>fbapi</string>
<string>fbapi20130214</string>
<string>fbapi20130410</string>
<string>fbapi20130702</string>
<string>fbapi20131010</string>
<string>fbapi20131219</string>
<string>fbapi20140410</string>
<string>fbapi20140116</string>
<string>fbapi20150313</string>
<string>fbapi20150629</string>
<string>fbapi20160328</string>
<string>fbauth</string>
<string>fb-messenger-share-api</string>
<string>fbauth2</string>
<string>fbshareextension</string>
<string>instagram</string>
<string>fb</string>
</array>
<key>FacebookAppID</key>
<string>248113447230045</string>
<key>FacebookClientToken</key>
<string>bbe9f698aecad7da2a10cae6d884ca08</string>
<key>FacebookDisplayName</key>
<string>GluedIn App</string>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLName</key>
<string>Facebook SignIn</string>
<key>CFBundleURLSchemes</key>
<array>
<string>fb248113447230045</string>
</array>
</dict>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLName</key>
<string>Google SignIn</string>
<key>CFBundleURLSchemes</key>
<array>
<string>${REVERSED_CLIENT_ID}</string>
</array>
</dict>
</array>
themeConfig": {
"appColor": {
"buttonActiveColor": "",
"outlineButtonColor": "",
"iconColor": "",
"appPrimaryColor": "",
"appSecondaryColor": "",
"textColorBlack": "",
"actionColorDefault": "",
"dividerOutlineColor": "",
"inActiveButtonColor": "",
"inActiveButtonTitleColor": "",
"selectedCellColor": "",
"textfieldBorderColor": "",
"secondaryButtonColor": "",
"unreadNotification": ""
},
GluedinSDK.shared.quickLaunch(email: "amitch184@gmail.com",
password: "123456789",
firebaseToken: "",
deviceId: "123456",
deviceType: "ios",
fullName: "Amit Choudhary",
autoCreate: true) { vw in
self.navigationController?.pushViewController(vw ?? UIViewController(), animated: true)
} failure: { error in
print(error)
}
@IBAction func launchGluedinTabAsGuest(_ sender: Any) {
GluedIn.shared.initSdk {
let gluedinTab:UITabBarController = GluedIn.shared.rootTabController() ?? UITabBarController()
self.navigationController?.pushViewController(gluedinTab, animated: true)
} failure: { error, code in
print(error)
}
}
@IBAction func launchGluedinAuthScreen(_ sender: Any) {
GluedIn.shared.initSdk {
let rootController = GluedIn.shared.rootControllerWithSignIn()
self.navigationController?.pushViewController(rootController ?? UIViewController(), animated: true)
} failure: { error, code in
print(error)
}
}
@IBAction func registerUserAndlaunchGluedin(_ sender: Any) {
GluedIn.shared.initSdk {
GluedIn.shared.quickLaunch(email: "amitch184@gmail.com",
password: "123456789",
firebaseToken: "",
deviceId: "1234",
deviceType: "ios",
fullName: "amit",
autoCreate: true,
termConditionAccepted: true) { [weak self] vw in
guard let weakSelf = self else { return }
weakSelf.navigationController?.pushViewController(vw ?? UIViewController(), animated: true)
} failure: { err,arg in
print(err)
print(arg)
}
} failure: { err,arg in
print(err)
print(arg)
}
}
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
guard let windowScene = scene as? UIWindowScene else { return }
window = UIWindow(windowScene: windowScene)
window?.rootViewController = UIStoryboard(name: "LaunchScreen", bundle: nil).instantiateInitialViewController()
window?.makeKeyAndVisible()
let controller: UIViewController = GluedinSDK.shared.rootControllerWithSignIn() ?? UIViewController()
let navigationController = UINavigationController(rootViewController: controller ?? UIViewController())
self.window?.rootViewController = navigationController
}