cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Smitha.Alangar (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-11353) Inappbrowser does not allow scope in angularjs / Certificate Validation Fails
Date Fri, 03 Jun 2016 11:42:59 GMT

    [ https://issues.apache.org/jira/browse/CB-11353?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15314007#comment-15314007
] 

Smitha.Alangar commented on CB-11353:
-------------------------------------

Hi,

Thanks for your time.

Can you at least please confirm what can I do to use window.location.href
instead of window.open to launch Inapp browser?  Because I need to come
back to my app. Launching it in new window is not a solution to me.

On Thu, Jun 2, 2016 at 2:26 AM, Shazron Abdullah (JIRA) <jira@apache.org>



> Inappbrowser does not allow scope in angularjs / Certificate Validation Fails
> -----------------------------------------------------------------------------
>
>                 Key: CB-11353
>                 URL: https://issues.apache.org/jira/browse/CB-11353
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin InAppBrowser
>         Environment: Grunt, Angularjs, Cordova - Mobile app - iOS and Android - latest.
Tried to install latest inappbrowser - it installed -Inappbrowser:1.4.0 (as per package.json
read after install plugin)
>            Reporter: Smitha.Alangar
>              Labels: easyfix, security, test
>   Original Estimate: 96h
>  Remaining Estimate: 96h
>
>  I tried the official Inapp browser, but, it throws me the following error:
>  Failed to validate the certificate chain, error: java.security.cert.CertPathValidatorException:
Trust anchor for certification path not found.
> Also, I have the following in my controller:
> {code}
> (function () {
>   'use strict';
>   angular.module('app')
>     .controller('appCtrl',['$scope','PayService',
>     function ($scope,PayService,$window){
>     
>    document.addEventListener("deviceready", onDeviceReady, false);
>    function onDeviceReady() {
>     window.open = cordova.InAppBrowser.open;
> 	//opens fine
>    cordova.InAppBrowser.open('https://github.com/apache/cordova-plugin-inappbrowser',
'_blank', 'location=yes');
>     $scope.redirectPayment = function () {
>       PayService.redirectPayment()
>       .then(function (response) {
>         
>         $scope.result = response.data;
>         console.log("Success!..." +  response.data);
>         //never opens, throws error -  Failed to validate the certificate chain, error:
java.security.cert.CertPathValidatorException: 
> 		//Trust anchor for certification path not found.
> 		//and sometimes - 
> 		//E/SysUtils: ApplicationContext is null in ApplicationStatus
> 		//validate_display:255 error 3008 (EGL_BAD_DISPLAY)
> 		//HostConnection::get() New Host Connection established 0xaff49260, tid 3178
> 		//E/DataReductionProxySettingListener: 
> 		//No DRP key due to exception:java.lang.ClassNotFoundException: com.android.webview.chromium.Drp
> 		window.open = cordova.InAppBrowser.open('https://github.com/apache/cordova-plugin-inappbrowse',
'_blank', 'location=yes');
>         var urlToGo = $scope.result.data.payment_url;
>         console.log("URL to redirect.." + urlToGo);
>         //window.location.href = cordova.InAppBrowser.open(urlToGo, '_system', 'location=yes');
>        // window.location.href = urlToGo;
>       });
>     };
>   }
>     
>   }]); 
>   
> })();
> {code}
> Thanks,
> Smitha
> (Cordova - 6.1.1, Inappbrowser:1.4.0 (as per package.json);AJS 1.5.1)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message