This is a migrated thread and some comments may be shown as answers.

InAppBrowser Close fires deviceReady event in iOS

5 Answers 66 Views
Apache Cordova
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Brad
Top achievements
Rank 1
Brad asked on 19 Jun 2014, 05:01 AM
I have a listview and each item has a data-tap="linkSelected" attribute and that linkSelected method fires a new InAppBrowser using var win = window.open(external_url, "_blank", 'location=yes&toolbar=yes&hidden=yes'); it opens just fine on both iOS and Android. However when I close the browser on Android, the app screen is exactly where I left off. In iOS when pressing the close button, the application completely reloads, refires the deviceReady event and moves back to the initial page. I would like iOS to close the browser window and maintain the same position in the listview where it was. 

I have done this before on other apps, but I cannot make it happen on this one using the same code and I have no idea what is causing this behavior. In my other app where this is working, the deviceReady event is never fired again so I don't think it's anything different about that block of code.

5 Answers, 1 is accepted

Sort by
0
Brad
Top achievements
Rank 1
answered on 19 Jun 2014, 01:55 PM
I was told while discussing another issue that this is a known bug in iOS with the livesync feature turned on. I will test without livesync and see if that fixes the problem.
0
Zdravko
Telerik team
answered on 23 Jun 2014, 08:19 AM
Hello Brad,

Thanks for your feedback.
I suggest continuing this conversation using the other ticked opened by you. Thus we will keep the consistency on the matter and track its progress easier.

We will expect your reply there in case of further need of assistance.

Regards,
Zdravko
Telerik
 

Share what you think about AppBuilder and Telerik Platform with us in our feedback portal, so we can become even better!

 
0
Tony
Top achievements
Rank 1
answered on 07 Jul 2014, 09:39 AM
Hi Bard and Zdravko,

I have the same problem. This only started occurring recently, probably as a result of Cordova 3.5.

You referenced another ticket but I can't find this.

Is this problem now resolved or is there a workaround? I've tried turning livesync feature off but it didn't solve the problem.

Regards,
Tony.
0
Zdravko
Telerik team
answered on 09 Jul 2014, 04:30 PM
Hi Tony,

We have this issue logged and we are working on a fix. Due to its value for our users a speedy resolution should be expected.
As this behavior appears only in debug mode where our LiveSync feature is enabled you don't have to worry about your users' experience. Once built in Release mode or Published this functionality is disabled.
Build settings can be found by mouse right clicking over the solution node in Project navigator if needed.

Regards,
Zdravko
Telerik
 

Share what you think about AppBuilder and Telerik Platform with us in our feedback portal, so we can become even better!

 
0
Tony
Top achievements
Rank 1
answered on 09 Jul 2014, 05:05 PM
Hi Zdravko,

Thanks, the workaround fixed the issue.

Tony.
Tags
Apache Cordova
Asked by
Brad
Top achievements
Rank 1
Answers by
Brad
Top achievements
Rank 1
Zdravko
Telerik team
Tony
Top achievements
Rank 1
Share this question
or