[
https://issues.apache.org/jira/browse/CB-12407?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15937899#comment-15937899
]
Copois Pierre commented on CB-12407:
------------------------------------
I have the same problem!!
-You mean that when you go back to your app the events are lost?
Yes
-is the app restarted when you go back? or does it keep the previous state?
it keep the previous state
I have the same by opening a pdf in the system or the Chrome browser
https://github.com/Copois/ionic2InAppBrowser/blob/master/src/pages/home/home.ts
I even try to link the listener apres to back in app
> InAppBrowser object reference AND events lost
> ---------------------------------------------
>
> Key: CB-12407
> URL: https://issues.apache.org/jira/browse/CB-12407
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin InAppBrowser
> Affects Versions: 6.4.0
> Environment: android (never tried other plaforms)
> Reporter: Othon Crelier
>
> If you have an instance of InAppBrowser, say, with target=_blank, and then
> you create a new instance with target=_system, your original InAppBrowser
> reference gets lost, and the events assigned to it stop working.
> {code:javascript}
> let blankBrowser = new InAppBrowser('https://someurl.com', '_blank',
> 'location=no,zoom=no,hidden=no');
> blankBrowser.on('loadstart').subscribe(
> event => {
> //some behavior
> }
> );
> let systemBrowser = new InAppBrowser('https://anotherurl.com', '_system',
> 'location=no,zoom=no,hidden=no');
> //bang! the events assigned to blankBrowser go away, and I cannot do
> anything with the reference
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]