Skip to content

TokenAuthenticator authorizedWith(...) function not calling completionHandler in iOS 26.x #228

@4428078amana

Description

@4428078amana

I've aded WebexSDK through Pods. and i have a Service App (G2G) enabled. When i try to authenticate on real iPhone device running iOS 26.1 using this code for authentication:

`let authenticator = TokenAuthenticator(isFedRAMPEnvironment: false)
self.authenticator = authenticator

    let webex = Webex(authenticator: authenticator)
    self.webex = webex

    print("1️⃣ Calling webex.initialize...")

    webex.initialize { [weak self] isAuthorized in
        guard let self else { return }

        print("2️⃣ initialize completed. isAuthorized = \(isAuthorized)")

        if isAuthorized {
            print("⚡ Already authorized (cached)")
            self.isInitialized = true
            return
        }

        print("3️⃣ Calling authorizedWith(accessToken)...")

        authenticator.authorizedWith(accessToken: accessToken, expiryInSeconds: 3600) { result in
            print("4️⃣ authorizedWith callback fired:", result.rawValue)
            
            switch result {
            case .success:
                print("🎉 Successfully authorized!")
                self.isInitialized = true
                
            case .invalidToken:
                self.lastError = "Invalid Webex token"
                
            case .networkError:
                self.lastError = "Network error during Webex auth"
                
            case .internalError:
                self.lastError = "Internal error during Webex auth"
                
            default:
                self.lastError = "Auth failed: \(result.rawValue)"
            }
        }
    }`

The complition handler section never get called.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions