-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Cordova oAuth (iOS) - stops at about:blank screen #172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Please make sure you follow the instructions: I speculate the redirect is not getting picked up by your app. There is something wrong you your cuystomurlscheme plugin. |
I've done that and checked it and can't see any problems. If I type the following in Safari on the iPad |
Can you also pass the customParameters for Google here too. By the way, if you have an error in that provider, it will not work for either (android or iOS). Can you also add in your root html file and provide it back (you can truncate codes in it).
This will help log the incoming URL link. I want to see if the app is receiving any app link when you finish sign in. |
Since google seems broken on both platforms, this is from Facebook on iOS. I logged in, browser went to about:blank and stayed stuck there, but console printed : Pressing Done says redirect operation has been cancelled. |
Hmm, seems like the SDK is unable to detect the incoming link even though the plugin is actually detecting it. Can you check BuildInfo.packageName.indexOf('com.qualint.readwithmekids://') returns 0? |
No it returns -1 The value of packageName is: |
Yeah I think that's the reason. I am not sure what is lower casing this in the flow. We will need to look into it. To unblock yourself, can you lower case your bundle ID and test it again? We rely on BuildInfo.packageName to get the bundle ID of your app and to make sure we don't intercept links that are not intended to your app. |
When I lowercase it Xcode says it can't be registered to my team and the cordova build says that there isn't a provisioning profile for it. |
That's not an issue on our end. We will make the check case insensitive. We'll try to get it into the next release. If not, the one after. |
Great, thanks! How often are you projecting to do releases? |
This is a firebase.js change and not firebaseui related. You can check the history of releases: |
Firebase JS SDK v4.1.3 came out today and it corrects the general OAuth problem on IOS with mixed case bundle ID. Thanks for the quick help and updates! |
Glad you got it working! |
Uh oh!
There was an error while loading. Please reload this page.
I seem to have gotten farther in Android, but still have some issues that I have asked about on another thread. In iOS, I also get different behavior for Facebook and Google login, but neither work.
Facebook login on iOS
The first time I choose Facebook, the browser opens at the Facebook login screen. After I complete the login, the browser changes to a different screen that shows about:blank at the top. Everything stops there. If I choose Done on the left side of the browser, I go back to the app with a tiny popup for the user, "The redirect operation has been cancelled by the user before finalizing. Dismiss" There is no output on the console. When I choose Facebook a second time, I do not get the facebook login screen, it behaves like google below.
Google login on iOS
When I press the Sign in with Google button I momentarily see a blank page with the url PROJECTID.firebaseapp.com. No login/account screen is ever shown. After a moment it switches to an about:blank screen and sits there. Pressing Done gives the same message as above.
Thanks for any help you can give!
The text was updated successfully, but these errors were encountered: