我在使用 Webview 访问 DocuSign 签名 URL 时出错

I have an error accessing DocuSign signing URL with Webview

我目前正在使用演示沙盒测试 DocuSign API。 我在 C# 中有一个 WebAPI,它使用 DocuSign API。我创建了一个包含要签名的文档的信封并生成了收件人视图 URL.

我还有一个带有 Webview 的 Android 应用程序,它应该获取生成的 URL 以允许用户签署文档。

当 webview 加载 URL 时,出现错误 ERR_CONNECTION_RESET。

我明确指出它在使用 Android 模拟器时效果很好,但在我的 phone 连接到 WI-FI 时效果不佳。

提前致谢。

我 copy/pasted URL 我的 phone 浏览器,它工作。我只能在 App 和 Webview 中访问它。

我希望到达与我的文档相关的 Docusign 签名页面。

WebView 显示 ERR_CONNECTION_RESET

编辑: 这是一些代码

     myWebView.getSettings().setJavaScriptEnabled(true);
        myWebView.getSettings().setDomStorageEnabled(true);
        myWebView.setWebViewClient(new WebViewClient() {
            @Override
            public boolean shouldOverrideUrlLoading(WebView view, WebResourceRequest url) {
                if((url.getUrl()).toString().equals(Constant.URL + "?event=signing_complete"))
                {
                   /*Some code to redirect to other activity*/
                    return true;
                }
                else
                {
                    Log.i("url",rep);
                    myWebView.loadUrl(rep);
                    return false;
                }
            }

            @Override
            public void onReceivedError(WebView view, WebResourceRequest request, WebResourceError error){
                //myWebView.loadUrl(rep);
                Log.d("ERROR",  error.getErrorCode());
            }

            public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) {
                Log.i("SSL", "SSL error");
                handler.proceed();
            }
        });

[这是网络视图中的结果][1] [1]: https://i.stack.imgur.com/yRuly.png

编辑 2: 如果有帮助,我的 .NET WEB API 托管在我的计算机上 Windows IIS 并通过以太网连接到网络。

Android 设备通过 WI-FI 连接到同一网络。 不知道是不是因为使用了SSL访问Docusign的签名页面导致的错误

我尝试用 google.com 替换 webview 的 url 并且它工作正常。

如果您添加一些代码就太好了,这样我们就可以很容易地跟踪错误。 您是否尝试添加

WebSettings webSettings = mWebView.getSettings();
        webSettings.setJavaScriptEnabled(true);
        webSettings.setDomStorageEnabled(true);

到您的网络视图?

我的问题终于解决了,但还是不明白原因。

我从设备上手动卸载了该应用程序。

我重新安装了它并且它起作用了,只是感觉太愚蠢了,我一开始没有尝试...

"Have you tried turning it off and on again ?"