cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CB-11035) Events not firing for InAppBrowser Plugin
Date Thu, 07 Apr 2016 13:47:25 GMT

     [ https://issues.apache.org/jira/browse/CB-11035?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

David updated CB-11035:
-----------------------
    Description: 
I'm using "_blank" target within my ionic2 app but the events (tested with loadstart and exit)
won't fire:

{code}
var url = 'http://myURL.com';
var browserRef = cordova.InAppBrowser.open(url, '_blank', 'location=no,clearsessioncache=yes,clearcache=yes');
browserRef.addEventListener('loadstart', event => {
  console.log('loadstart event'); // not fired
});
browserRef.addEventListener('exit', event => {
  console.log('exit event'); // not fired
});
{code}

My setup is:
Cordova CLI: 6.0.0
iOS Platform Version: 4.0.1
InAppBrowser Plugin Version: 1.2.1
Ionic version: 2.0.0-beta.3
OS: Mac OS X El Capitan
Node Version: v4.1.2
Xcode version: Xcode 7.3 Build version 7D175

*UPDATE:*
This bug seems to only appear when I add
`<preference name="AllowInlineMediaPlayback" value="true"/>` to config.xml


  was:
I'm using "_blank" target within my ionic2 app but the events (tested with loadstart and exit)
won't fire:

{code}
var url = 'http://myURL.com';
var browserRef = cordova.InAppBrowser.open(url, '_blank', 'location=no,clearsessioncache=yes,clearcache=yes');
browserRef.addEventListener('loadstart', event => {
  console.log('loadstart event'); // not fired
});
browserRef.addEventListener('exit', event => {
  console.log('exit event'); // not fired
});
{code}

My setup is:
Cordova CLI: 6.0.0
iOS Platform Version: 4.0.1
InAppBrowser Plugin Version: 1.2.1
Ionic version: 2.0.0-beta.3
OS: Mac OS X El Capitan
Node Version: v4.1.2
Xcode version: Xcode 7.3 Build version 7D175




> Events not firing for InAppBrowser Plugin
> -----------------------------------------
>
>                 Key: CB-11035
>                 URL: https://issues.apache.org/jira/browse/CB-11035
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin InAppBrowser
>            Reporter: David
>
> I'm using "_blank" target within my ionic2 app but the events (tested with loadstart
and exit) won't fire:
> {code}
> var url = 'http://myURL.com';
> var browserRef = cordova.InAppBrowser.open(url, '_blank', 'location=no,clearsessioncache=yes,clearcache=yes');
> browserRef.addEventListener('loadstart', event => {
>   console.log('loadstart event'); // not fired
> });
> browserRef.addEventListener('exit', event => {
>   console.log('exit event'); // not fired
> });
> {code}
> My setup is:
> Cordova CLI: 6.0.0
> iOS Platform Version: 4.0.1
> InAppBrowser Plugin Version: 1.2.1
> Ionic version: 2.0.0-beta.3
> OS: Mac OS X El Capitan
> Node Version: v4.1.2
> Xcode version: Xcode 7.3 Build version 7D175
> *UPDATE:*
> This bug seems to only appear when I add
> `<preference name="AllowInlineMediaPlayback" value="true"/>` to config.xml



--
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