Auth0 Home Blog Docs

iOS hosted page freezing on iOS 10

ios

#1

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


#2

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


#3

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:

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


#4

Thanks! That helped a lot