InAppBrowser Close fires deviceReady event in iOS

6 posts, 0 answers
  1. Brad
    Brad avatar
    8 posts
    Member since:
    Mar 2014

    Posted 19 Jun 2014 Link to this post

    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.
  2. Brad
    Brad avatar
    8 posts
    Member since:
    Mar 2014

    Posted 19 Jun 2014 Link to this post

    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.
  3. Zdravko
    Admin
    Zdravko avatar
    657 posts

    Posted 23 Jun 2014 Link to this post

    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!

     
  4. Tony
    Tony avatar
    6 posts
    Member since:
    Oct 2012

    Posted 07 Jul 2014 Link to this post

    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.
  5. Zdravko
    Admin
    Zdravko avatar
    657 posts

    Posted 09 Jul 2014 Link to this post

    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!

     
  6. Tony
    Tony avatar
    6 posts
    Member since:
    Oct 2012

    Posted 09 Jul 2014 in reply to Zdravko Link to this post

    Hi Zdravko,

    Thanks, the workaround fixed the issue.

    Tony.
Back to Top