Open external link Childbrowser issue

Thread is closed for posting
4 posts, 0 answers
  1. Audrey
    Audrey avatar
    52 posts
    Member since:
    Jan 2013

    Posted 15 Jan 2013 Link to this post

    I'm currently developping an app for iOS and Android.
    I have a problem when I want to open an external link :
    for iOS, I use :
             <a id="LinkPJ" href="url" rel="external" target="_blank" >
    and it opens my link in Safari.

    But in Android, this doesn't work :(
    So I try to open my link in Childbrowser but it doesn't work neither !!

    I have this issue :
    Uncaught TypeError: Cannot call method 'addConstructor' of undefined (Plugins/Child%20Browser/childbrowser.js:102)

    Below the part of my code :
    Javascript :
    $("#LinkPJ").click(function () {
                                window.plugins.childBrowser.showWebPage('', { showLocationBar: true });

    In the <head> :
    <script type="text/javascript" src="cordova.js"></script>
            <script src="Plugins/Child Browser/childbrowser.js"></script>

    I don't find the origine of the problem... Do you have any idea or solution to open an external link out of the app (Childbrowser or native android browser) in android ?

    Best regards.

  2. Ivan Ivanov
    Ivan Ivanov avatar
    42 posts

    Posted 16 Jan 2013 Link to this post

    Hi Audrey,

    Your code looks fine. What version of Apache Cordova do you use? You could try to move your script definitions at the bottom of page just before </body>.

    You could also try to clone our ChildBrowser plugin demo and see if it's working on your device.

    Ivan Ivanov
    the Telerik team

    Share feedback and vote for features on our Feedback Portal.
    Want some Kendo UI online training - head over to Pluralsight.
  3. Eric Garrison
    Eric Garrison avatar
    4 posts
    Member since:
    Aug 2007

    Posted 11 Dec 2013 Link to this post

    The example you point to says it was deprecated in cordova 3.0. Do you have a suggestion of what should now be used in its place? This plugin seems to do exactly what I need, but I can't find an example of anything else that I can get to work in my icenium cordova kendo setup.
  4. Kaloyan
    Kaloyan avatar
    878 posts

    Posted 12 Dec 2013 Link to this post

    Hi Eric,

    The ChildBrowser plugin is now replaced with the InAppBrowser core Cordova plugin. There is a good demo about its usage, here. Documentation on InAppBrowser is available in Cordova help here.

    You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
    Looking for tips & tricks directly from the Icenium team? Check out our blog!
    Share feedback and vote for features on our Feedback Portal.
Back to Top