Childbrowser fail on Android

3 posts, 0 answers
  1. John
    John avatar
    16 posts
    Member since:
    Oct 2012

    Posted 13 Apr 2013 Link to this post

    in my index.html I have:

    <a data-role= "button" href="#"  data-inline="true" data-mini="true"  onclick="myShowWebPage('http://www.yoursmartphoneapp.biz');">test</a>

    and in my main.js I have :

    function myShowWebPage(url){
        alert (url);
         window.plugins.childBrowser.showWebPage(url, { showLocationBar: true },
                                                    { showAddress : true },
                                                    { showNavigationBar : true });
    }


    On IOS device, works, perfectly. On Android, the alert is shown but not the web page.

    The icenium sample childbrowser app does work fine, but seems awful complicated (dynamically adding click events etc) and I can't see where my code differs in the essence of calling the childbrowser showWebPage function.
  2. Yavor Georgiev
    Admin
    Yavor Georgiev avatar
    982 posts

    Posted 14 Apr 2013 Link to this post

    Hello John,

     Could you please run Graphite, connect your device, open the log tab for your phone in the Output pane and look for any errors in the log when you try to call the showWebPage function?

    Greetings,
    Yavor Georgiev
    the Telerik team

    Share feedback and vote for features on our Feedback Portal.
    Want some Kendo UI online training - head over to Kendo UI Dojo.
  3. John
    John avatar
    16 posts
    Member since:
    Oct 2012

    Posted 14 Apr 2013 Link to this post

    Hello Yagor

    Nothing in the log.

    I did create a new jquery based project and used the above code in it and it worked fine on both Android and IOS devices, so the problem must lie somewhere in my project.

    As it happens I found that  window.open(url, "_blank", "location=yes") works perfectly on both so I will use that instead.
Back to Top