window.plugins is undefined in Ion

2 posts, 0 answers
  1. Candace
    Candace avatar
    9 posts
    Member since:
    Sep 2011

    Posted 25 Sep 2013 Link to this post

    We're running into an with ChildBrowser.  We are running the app over Ion with LiveSync on an iPad 3.  When we console out typeof(window.plugins), it returns "undefined".  

    We have updated to the latest version of Graphite and Ion.  Within Graphite, the ChildBrowser folder is visible at Plugins/com.phonegap.plugins.childbrowser-4.1.0.  

    We are calling the script in our index.html with this path:
    Plugins/Child Browser/childbrowser.js, which matches the "target" in the plugin's plugin.xml file.

    Also, strangely, within the project Properties > Plugins, the "Child Browser" line/checkbox is grayed out.  Could this have something to do with our issue?

    Interested in your thoughts!

    Thanks.
  2. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 26 Sep 2013 Link to this post

    Hi Candace,

    window.plugins is now deprecated in Cordova 3.0 and should not be used. Additionally the ChildBrowser plugin is deprecated and Apache Cordova recommends using the InAppBrowser plugin instead.

    You can attempt to resolve your issue by trying out any of the following approaches:
    • Downgrade the Apache Cordova version to 2.x. This might provide inaccurate test results when running your app in Ion, or you might not be able to run it all in Ion. However, you can still test your app on iOS devices, if you build it with a provisioning profile.
    • Migrate your ChildBrowser functionality to InAppBrowser. For more information about the InAppBrowser API, check here.

    Regards,
    Steve
    Telerik

    Big news for mobile app and .NET developers! Hear about it at our Release Keynote. Thursday, September 26th, 11AM EDT
    Do you enjoy Icenium? Vote for it in Windows IT Pro Community Choice Awards as Best Cloud Computing Product or Service (Category 5).
    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