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

Childbrowser fail on Android

2 Answers 24 Views
Android Devices
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
John
Top achievements
Rank 1
John asked on 13 Apr 2013, 08:48 AM
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 Answers, 1 is accepted

Sort by
0
Yavor Georgiev
Telerik team
answered on 14 Apr 2013, 11:46 AM
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.
0
John
Top achievements
Rank 1
answered on 14 Apr 2013, 02:03 PM
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.
Tags
Android Devices
Asked by
John
Top achievements
Rank 1
Answers by
Yavor Georgiev
Telerik team
John
Top achievements
Rank 1
Share this question
or