Hi i have been trying for days now to fix this 403 error on iOS.
I am running the application from an actual phone.
I have tried running it with ionic cordova build ios --prod
i have tried to run it via XCode as well as directly from a console.
I have it working on my windows PC, my Mac in a browser, My Android Phone.
But no matter what i try, i can’t get passed the disallowed error on iOS.
I can get passed it by faking the user agent, but that is causing all sorts of other issues and i dont consider this a valid fix since at the end of it i still dont manage to login.
I have in these past days stuck on this tried a million things but amongst them i made sure i had in config.xml
It does not tell me the user agent currently being used, would their be a way to know simply?
I also noticed by continuing to read more and more posts about this, that it doesn’t look like the plugin cordova-plugin-browsertab is doing its job to open the content outside of the app.
But knowing this hasn’t really lead me to an answer.
The reason i say the plugin isn’t working to leave the app to do the authentication is because of the status bar, i have a custom colored one and i can see it in the attached screenshot. This isn’t the case on Android(where it works)
Using the Safari Devtools, you can see the requests made from your app (easiest via the emulator).
There you can see the complete request with the user-agent header.
Same on a iPhone x. I know the plugin from Cordova isn’t doing its job popping out of the app like it does on my android phone. I build my android build on a different computer, I committed and reinstall the plugins but I somehow feel it had to be related because this page should leave the application
I have also confirmed that if i run it with ionic serve that i can login with google no problem, the return urls work, the popup works, comes back and logs me in. I also confirmed it still all works on my windows PC and my multiple Android devices.
So the question has to be, what could be missing that it would work in safari on the mac, but when i build it and push it to my phone it always reverts back to the 403.
I have confirmed the correct function to use is the redirect login method for both android and ios as far as i can tell. The popup method for browser versions.
What could i possibly be missing? are there any libraries or plugins or anything that could make it this way.
I can’t really give up on this because our app is already live using google+ logins, so we need to replace with the firebase method of google signin.
Thanks for your help so far. I still think the problem is the google signin shouldn’t be happening inside the app, it should be loading a chrome or safari windows and it seems to do that on Android no problem.
Because as you can see here on my android screen shot, I am completely outside the app, theirs no more blue status bar like i do on my ios device.