Per Quested Aronsson
Per Quested Aronsson

Reputation: 12110

Childbrowser plugin with Phonegap Build - bug or inconsistency?

I'm trying to use the Childbrowser plugin in Phonegap Build. I have a few problems:

  1. For iOS, I can only get it to work using PG2.0. Switching to PG2.1 makes it defunct.
  2. For Android, the same code that worked for iOS and PG2.0 does not work at all.

From config.xml:

<preference name="phonegap-version" value="2.0.0" />
<gap:plugin name="ChildBrowser" /> <!-- latest release -->

I have used the Javascript API as described in https://github.com/alunny/ChildBrowser/blob/master/README.md

Ref: https://build.phonegap.com/docs/plugins

Any ideas or suggestions?

Upvotes: 1

Views: 1704

Answers (2)

Per Quested Aronsson
Per Quested Aronsson

Reputation: 12110

To summarize:

The Childbrowser plugin which is bundled with Phonegap Build requires Phonegap version 2.1 to work with Android. Both versions 2.0 and 2.1 work with iOS. Just remember to set the Phonegap version in both config.xml AND index.html!

https://github.com/alunny/ChildBrowser/blob/master/README.md is the correct repository for this plugin, at least when using Phonegap Build.

Upvotes: 0

Tom Clarkson
Tom Clarkson

Reputation: 16174

I think you may be looking at the wrong version of the child browser plugin - phonegap build is more likely using https://github.com/phonegap/phonegap-plugins/tree/master/iOS/ChildBrowser

Upvotes: 1

Related Questions