It maybe that you need to register a custom URL Schema for your application like you do if using a browser login, but I didn’t think you should need to. I don’t need to for a native sign-in. See the bottom of our browser sample.
What type of iOS device or simulator are you using? This isn’t a desktop application is it?