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

window.plugins is undefined in Ion

1 Answer 159 Views
AppBuilder companion app
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Candace
Top achievements
Rank 1
Candace asked on 26 Sep 2013, 12:56 AM
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.

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 26 Sep 2013, 02:28 PM
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.
Tags
AppBuilder companion app
Asked by
Candace
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or