File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -19,10 +19,14 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
1919 private let connectionRedirectHandler = ConnectionRedirectHandler ( redirectURL: AppDelegate . connectionRedirectURL)
2020
2121 func application( _ application: UIApplication , didFinishLaunchingWithOptions launchOptions: [ UIApplication . LaunchOptionsKey : Any ] ? ) -> Bool {
22-
2322 ConnectButtonController . synchronizationLoggingEnabled = true
2423 ConnectButtonController . analyticsEnabled = true
2524 ConnectButtonController . initialize ( options: . init( enableSDKBackgroundProcess: true , showPermissionsPrompts: true ) )
25+ if ConnectionCredentials ( settings: . init( ) ) . isLoggedIn {
26+ ConnectButtonController . activate ( connections: [ DisplayInformation . locationConnection. connectionId] )
27+ } else {
28+ ConnectButtonController . deactivate ( )
29+ }
2630 ConnectButtonController . setBackgroundProcessClosures {
2731 print ( " Background process started! " )
2832 } expirationHandler: {
You can’t perform that action at this time.
0 commit comments