Hi All - Very recently, we've begun seeing this exception coming from multiple versions of our App:
Error Domain=WKErrorDomain Code=4 "A JavaScript exception occurred" UserInfo={WKJavaScriptExceptionLineNumber=0, WKJavaScriptExceptionMessage=Unable to run user agent scripts because this document has previously accessed Apple Pay. Documents can be prevented from accessing Apple Pay by adding a WKUserScript to the WKWebView's WKUserContentController., WKJavaScriptExceptionColumnNumber=0, NSLocalizedDescription=A JavaScript exception occurred}
we do not support Apple Pay on this site.
This particular part of our app interacts with a web based chart hosted on our domain, via several javascript functions.
we're using webView.evaluateJavascript(...)
Other parts of the app that interact with other pages do NOT encounter this issue.
As mentioned, this has worked perfectly fine in the past, and only recently started happening.
While I quadruple check things on my end, is there any documentation on this error and where I can begin troubleshooting this?
Thanks in advance.