Notalib / nativescript-webview-ext

Nativescript plugin with extended WebView functionality
Apache License 2.0
76 stars 37 forks source link

recognise certificates #100

Closed kandangit closed 3 years ago

kandangit commented 3 years ago

Which platform(s) does your issue occur on?

Have tested in Android 10, API Level 29 Android emulator Nexus 5X API 29

Please, provide the following version numbers that your issue occurs with:

Please, tell us how to recreate the issue in as much detail as possible.

Use the webview to display an external URL. In this URL some authentication occurs and at the end a landing page in another URL is displayed.

In the external URL, the third-party requests the certificate of the browser to log the user in. The certificate is correctly installed but is not recognised by the third-party provider returning an authentication error.

When the URL is opened with an external browser within the emulator -outside the WebView- (i.e., Chrome), it works fine and is recognized. So it does not seem an issue with the installation of the certificate in the emulator.

Does this plugin cover certificates or is not implemented?

If it was implemented have not see what should I do, otherwise would be nice to have it.

Thank you.

Is there any code involved?

<nota:WebViewExt
     row="0"
     col="0"
     [src]="src"
     (loaded)="webviewLoaded($event)"
     debugMode="true"
     displayZoomControls="true"
     scrollBounce="false"
     supportZoom="false"
     viewPortSize="initial-scale=1.2"
 ></nota:WebViewExt>
m-abs commented 3 years ago

I must admit to be blank about how to solve this. I'd assume it would be enough to install the cert on the OS.

kandangit commented 3 years ago

I tested and this is also happening on NativeScript's built-in WebView.

As an alternative I am using InAppBrowser (Chrome Custom Tabs) plugin (https://www.npmjs.com/package/nativescript-inappbrowser) which does recognize the certificate. Clearly to display external URLs, in this case at least, "Chrome Custom Tabs" seem a better option.

Thanks.

kandangit commented 3 years ago

I close as it seems it has not fix.