I have a strange redirect to app issue with our login system in iOS 9 only.
Now, I already have abitrary payload allowed and my url schemes are setup properly in my plist file.
What happens is this:
- A user is brought to an SFSafariViewController to login with facebook/google
- The user enters his credentials (or not if they are already cached)
- Instead of being redirected to our app, the user is then stuck on a blank page if his credentials are cached, or stuck on the final google/facebook login page. No "open in app" dialog appears and the openUrl AppDelegate function is not called.
Now, if the user closes the SFSafariViewController, comes back to our in app login page and attempt to login again a 2nd time, the redirect to the app works every time from there and the openUrl AppDelegate method is called each time.
Do note that on iOS9, we previously redirected outside the app to Safari to complete the login process (instead of using a SFSafariViewController) and had the same issue whereas the "open in App" popup to redirect to the app would only be shown on the 2nd login attempt and up.
This is all happening on iOS 9 only. On iOS 8, this issue does not appear and our users are always redirected to the app after login in.
The redirect url sent to the app after the OAuth login is the same on the first login attempt and up.
Has anyone gotten such a problem on iOS 9?