Posts

Post marked as solved
5 Replies
5.1k Views
The popup opens. And after finishing the 2FA, it never closes.This is happening without the popup, it does not redirect.The only error that shows in console is:Failed to load resource: the server responded with a status of 409 ()POST https://appleid.apple.com/appleauth/auth/signin 409Also, in the network, the call to https://appleid.apple.com/appleauth/auth/oauth/authorize is successful with response:{ "authorization" : { "id_token" : "...", "grant_code" : "...", "scope" : [ "name", "email" ] }, "authorizedData" : { "userId" : "..." }, "consentRequired" : false}
Posted Last updated
.
Post not yet marked as solved
0 Replies
484 Views
The problem is that if the user starts typing in a field and some third party js (like some captcha) starts, then the keyboard will close automatically which is bad user experience.This is what I was able to figure out.1. When an iframe starts loading its internal URL, first we call shouldstartloadwithrequest and return YES so that we load that url.2. At some point between shouldstartloadwithrequest and webviewdidstartload, we call something equivalent to document.activeElement.blur(), which hides the keyboard and unfocus the input the user is typing to.3. Because of the input gets unfocused, we can catch the UIKeyboardWillHideNotification to call a function.4. It seems like UIKeyboardWillHideNotification is called before webviewdidstartload and after shouldstartloadwithrequest .This is what I tried.1. Save the last input focused by a user in js.2. Set a flag to true in shouldstartloadwithrequest if the url to be loaded is from an iframe.3. Check that flag in the function called by UIKeyboardWillHideNotification, and if it is set to true, call a js that focuses again the last input we saved in js.4. Set the flag to false in webviewdidstartload.This way the keyboard only flicks in a barely noticeable way, which is fine for now. The problem is that this solution rests on assumptions about the behavior of UIWebView and maybe other code.As a side note, we are unable to move to WKWebView soon, as our code has a lot of code on top of UIWebView and we have to move each of them individually, which takes a lot of time. But for the time being we don't want our users to have a bad user experience.So it would be nice if someone could help and answer:Is there a better way to solve this problem in a short amount of time?On what conditions is webviewdidstartload called after shouldstartloadwithrequest?Is the flow of shouldstartloadwithrequest => KeyboardWillHide => document.activeElement.blur() => webviewdidstartload called in this order consistently or is there some asynchronous behavior that I'm unable to reproduce?
Posted Last updated
.
Post not yet marked as solved
1 Replies
406 Views
Hi,As I understand it, this value is generated on the device so apple servers can't validate this value, but that means that if we want to use this in our servers to prevent fraud, there is no way to know if someone modified this data.Is this supposed to be used in the front-end only? Or is there a recomended way to send it to our servers to prevent fraud?
Posted Last updated
.
Post not yet marked as solved
3 Replies
843 Views
Hi,In the documentation, it says that at the user's first sign in with apple. We receive a score help to prevent fraud."For fraud prevention and security reasons, the first time you use Sign in with Apple with a new app, Apple will share a simple numerical score with the developer to give them confidence that you are a real person. This score is derived from your recent Apple account activity along with abstracted information about your device and device usage patterns. Neither Apple nor the developer receives any specific information about how you use your device."I don't see anything related to this in the documentation.It only says that the information sent is of this form.{ "authorization": { "state": "[STATE]", "grant_code": "[CODE]", "id_token": "[ID_TOKEN]" }, "user": { "email": "[EMAIL]", "name": { "firstName": "[FIRST_NAME]", "lastName": "[LAST_NAME]" } }}
Posted Last updated
.