-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels