|
@@ -12,13 +12,15 @@ import StreamShield
|
|
|
|
|
|
@main
|
|
|
class AppDelegate: UIResponder, UIApplicationDelegate {
|
|
|
+ var appName = Bundle.main.infoDictionary?["CFBundleName"] as! String
|
|
|
+ var apikey = "***REPLACE***WITH***YOUR***ACCOUNT***"
|
|
|
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
|
|
|
var showButton = false
|
|
|
if PrefsUtil.getCpaasMode() == PrefsUtil.CPAAS_MODE_FLOATING || PrefsUtil.getCpaasMode() == PrefsUtil.CPAAS_MODE_MIX {
|
|
|
showButton = true
|
|
|
}
|
|
|
Nexilis.isShowForceSignIn = false
|
|
|
- APIS.connect(appName: Bundle.main.infoDictionary?["CFBundleName"] as! String , apiKey: "***REPLACE***WITH***YOUR***ACCOUNT***", delegate: self, showButton: showButton, fromMAB: true) //23091CF494A11149F5A8FC8D17FF690DC69AE656F91B86070A11506ED24144F5(BPKH) //38747683290F62E9667A018F490396EAE47BC16ADECD85B7E865C733E6DBD6A2(OneApp)
|
|
|
+ APIS.connect(appName: appName , apiKey: apikey, delegate: self, showButton: showButton, fromMAB: true) //23091CF494A11149F5A8FC8D17FF690DC69AE656F91B86070A11506ED24144F5(BPKH) //38747683290F62E9667A018F490396EAE47BC16ADECD85B7E865C733E6DBD6A2(OneApp)
|
|
|
registerForPushNotifications()
|
|
|
return true
|
|
|
}
|
|
@@ -60,7 +62,7 @@ extension AppDelegate: ConnectDelegate, UNUserNotificationCenterDelegate {
|
|
|
|
|
|
func onSuccess(userId: String) {
|
|
|
// print(#function, "userId: \(userId)")
|
|
|
- SecurityShield.check(appName: Bundle.main.infoDictionary?["CFBundleName"] as! String, apiKey: "***REPLACE***WITH***YOUR***ACCOUNT***")
|
|
|
+ SecurityShield.check(appName: appName, apiKey: apikey)
|
|
|
}
|
|
|
|
|
|
func onFailed(error: String) {
|