iOS hosted page freezing on iOS 10

Hello,

We’ve implemented the hosted page login on our iOS app, which works great on iOS 11, but seems to freeze on iOS 10 when it comes to returning to the app.

We’re including Auth0 through CocoaPods:

pod ‘Auth0’, ‘~> 1.0’

And the latest installed version is 1.10.1

Code:

#if DEBUG
let audience = “https://(auth0.testDomain)/userinfo”
#else
let audience = “https://(auth0.liveDomain)/userinfo”
#endif
Auth0
.webAuth()
.scope(“openid profile”)
.audience(audience)
.start

{ //This callback is not called }

Any idea what might be wrong?

Thanks in advance

We still haven’t found a solution to this problem. Any form of support would be much appreciated.

Hi @etienne.leblan admittedly I know little about Swift, but I stumbled across this question needing some attention. I am going to see if any of my colleagues can jump in and help, but I wanted to take a stab at this.

In swift there is an AppDelegate where we can use auth0.resumeAuth(...) allowing the app to handle auth0 callbacks. I wonder if the app is caught without handling the callback. Here is how it is setup in the samples:

https://github.com/auth0-samples/auth0-ios-swift-sample/blob/master/00-Login/Auth0Sample/AppDelegate.swift#L59-L61

My apologies if this is a bit obvious. In the meantime I’ll throw this link at some other community members to jump in.

Thanks! That helped a lot

1 Like