InAppBrowser broken?

6 posts, 0 answers
  1. Robert
    Robert avatar
    16 posts
    Member since:
    Jan 2014

    Posted 04 Apr 2014 Link to this post

    Trying to open a link in the system browser (android/ have not tried on iOS) doesn't work anymore.

    The code below worked on another app, but not anymore. 
            <a href="javascript:window.open(encodeURI('http://metroguide.com/lib/json/venue_redir.asp?o=mia${venue_id}'), '_system');" target="_system">
                ${company}
            </a>

    It opens the in the app browser....

    Help and thank you
    Robert Earnest Lassiter
  2. Robert
    Robert avatar
    16 posts
    Member since:
    Jan 2014

    Posted 04 Apr 2014 in reply to Robert Link to this post

    Same issue in iOS (not working), opens link in current web view....

    Please help, losing my mind.... 
  3. Robert
    Robert avatar
    16 posts
    Member since:
    Jan 2014

    Posted 07 Apr 2014 Link to this post

    reworked the app to the following
    on the detail page
         <div id="x" data-role="button" data-click="app.openInSystemBrowser" data-u="http://metroguide.com/lib/json/venue_redir.asp?o=mia${venue_id}">${company}</div>
     
    in app.js
    (function (global) {
        app.openInSystemBrowser = function(e) {
           var u = $(e.target).data('u');
           window.open(u, "_system");
        }    
    })(window);


    if I replace window.open() with alert(u) I know the parameter is being passed correctly...


  4. Zdravko
    Admin
    Zdravko avatar
    657 posts

    Posted 08 Apr 2014 Link to this post

    Hello Robert,

    I tried to reproduce your issue, but everything works as expected.
    Can you provide us the name of your project so we can take a look?

    Does it work in the simulator and what is the device you are using?
    Notice that devices' system browsers could vary which may lead to different behavior.
    Thanks.

    Regards,
    Zdravko
    Telerik
     

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

     
  5. Robert
    Robert avatar
    16 posts
    Member since:
    Jan 2014

    Posted 08 Apr 2014 in reply to Zdravko Link to this post

    My apologies, it suddenly started working and I am on deadline and forgot to post back. I can't seem to get it to fail like it was. It was just opening a blank page inside the cordova webview... But now at least it's working...

    Regards
    Robert
  6. Zdravko
    Admin
    Zdravko avatar
    657 posts

    Posted 11 Apr 2014 Link to this post

    Hello Robert,

    Thanks for your reply.
    I am glad everything is fine now.
    Please, do not hesitate to contact us if you have any further questions or 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!

     
Back to Top