Closed Qliqsee closed 1 year ago
@khmyznikov any thoughts on this one?
Hey @Qliqsee, for iOS issues, we recomend asking others on our discord as chances are others have ran into this and might have a solution there: https://aka.ms/pwabuilderdiscord
Hey @Qliqsee , I am going to close this issue for now because, as Nikola stated above, we normally recommend our Discord (making a Discord account is free btw) for these kinds of questions.
So basically I added google sign in to my web app which signs in and redirects properly on web browsers and PWAs across environments. But after using pwabuilder.com to generate a build for ios, when users try to sign in, usually for the first time using google sign in, the flow works as expected only to end up at https://accounts.youtube.com/accounts/SetSID which returns 400. That’s an error. The server cannot process the request because it is malformed. It should not be retried. That’s all we know.
I've been trying to work my way around this with no luck. Things I've tried
config.preferences.javaScriptEnabled = true
to webView.swift fileAnother thing I did was to export my logs as seen in the file below, while inspecting I noticed a post request made to accounts.youtube.com/accounts/SetSID which was supposed to have a certain value that is probably an ID. The post request fails and results in the said error.
accounts.google.com.txt
<script type=\"text/javascript\" nonce=\"AmMZtjTpIXRhrBHvQrLDzA\">\n document.body.onload = function() {\n document.forms[\"hiddenpost\"].submit();\n };\n </script>\n<form action=\"https://accounts.youtube.com/accounts/SetSID\" method=\"POST\" id=\"hiddenpost\" name=\"hiddenpost\"><input type=\"hidden\" name=\"ssdc\" value=\"1\"> <input type=\"hidden\" name=\"sidt\" value=\"ALWU2cv/Q0hC/dlsgq5O4RuWijzzU3hxC0VXwPqmuligmnAjyQNXQdA10GHPuhFO3dRyD4oB0fK0my6QIMfRv7GZQjVdrD3rnAZiIHtv6XylG4+h82tFlpZBta18XDMxBLsBS5eG...
Point to note; even after getting this error, on restarting the app or terminating the process I discover the sign in was actually successful. The issue I have is how to stop getting this error.