PhoneGap 3.0 Now Supported on PhoneGap Build!

  • 1
  • Announcement
  • Updated 6 years ago
More info here.

If you have issues, let us know!
Photo of ryan

ryan, Developer

  • 1538 Posts
  • 132 Reply Likes

Posted 7 years ago

  • 1
Photo of Anthony Narcise

Anthony Narcise

  • 92 Posts
  • 15 Reply Likes
Finally...
Photo of Eddy Verbruggen

Eddy Verbruggen, Champion

  • 375 Posts
  • 86 Reply Likes
Hi Ryan,

Can you please tell us when 3.0.0 will be the default (in case you don't specify a version in the config.xml)?

I think it's relevant to know for 3rd party plugin makers (because Android plugins will probably not work on 3.0.0 without a code change).

Thanks and congrats,
Eddy
Photo of ryan

ryan, Developer

  • 1538 Posts
  • 132 Reply Likes
@Eddy likely early next week, as it gives us a chance to work out any kinks with those who upgrade right off the bat.
Photo of Eddy Verbruggen

Eddy Verbruggen, Champion

  • 375 Posts
  • 86 Reply Likes
Great, thanks for the quick response. That gives 3rd party plugin makers (and Adobe reviewers) a bit of time as well.
Photo of Yann S

Yann S

  • 214 Posts
  • 7 Reply Likes
I just tried... and plugin failed :(
plugin unsupported: com.adobe.plugins.gaplugin

How can I use Google Analytics plugin ?

my config.xml contain :

<preference name="permissions" value="none"/>
<preference name="phonegap-version" value="3.0.0" />
<preference name="load-url-timeout" value="11000" />
<gap:plugin name="com.adobe.plugins.gaplugin" />
<gap:platform name="android" />
Photo of ryan

ryan, Developer

  • 1538 Posts
  • 132 Reply Likes
Still working on 3.0 support for the GA Plugin, should be done early next week. Sorry for the inconvenience.
Photo of Yann S

Yann S

  • 214 Posts
  • 7 Reply Likes
Ok, now i have just an error building without any details ;(
Photo of Andy Dixon

Andy Dixon

  • 65 Posts
  • 5 Reply Likes
Droid fail:
"Oh geez. Your build failed. Sorry, but a problem occurred on the build server"

App ID 275415
Photo of Andy Dixon

Andy Dixon

  • 65 Posts
  • 5 Reply Likes
Oh, and fanboiphone fail too. Same error..
Photo of Ian

Ian

  • 106 Posts
  • 6 Reply Likes
There are major changes between 3.0.0 and 2.9.0, especially regarding how plugins are called, so watch out for them. Read the blog post linked to above for further details.

If you're using the ChildBrowser plugin I'd strongly recommend NOT upgrading to 3.0.0 where it is no longer supported. The new InAppBrowser plugin isn't as powerful yet, e.g. it doesn't support zooming.
Photo of ryan

ryan, Developer

  • 1538 Posts
  • 132 Reply Likes
Thanks guys -- would love to hear more about what's preventing you from moving to InAppBrowser. ChildBrowser is not going to see much maintenance moving forward now that InAppBrowser is in place.

@ian -- you say InAppBrowser doesn't support zooming -- what platform are you testing on? pinch and zoom should work.

@yann -- I see that you've logged an issue in Jira regarding the sound still playing. Does this behave correctly in ChildBrowser? Same with your CSS and JS injection -- does this do what you want in ChildBrowser? Can you provide an example of what you mean?
I'm using the new InAppBrowser and have it working on Android when built locally as well as on iPhone when built remotely, but I can't manage to get it working in Android when built by Phonegap Build... none of the window.open() links do anyhting. ¿Any ideas?
Photo of ryan

ryan, Developer

  • 1538 Posts
  • 132 Reply Likes
what version of phonegap are you using? if its 3.0, make sure you are including the inappbrowser plugin in your config.xml:

https://build.phonegap.com/plugins/87

As of 3.0, all core plugins must be included in your config.xml
I'm using 3.0, and I have included InAppBrowser plugin both locally (throught CLI) and remotely (in config.xml, it appears in my "Plugins" list on build.phonegap.com)
Photo of ryan

ryan, Developer

  • 1538 Posts
  • 132 Reply Likes
Can you share your app ID?
Photo of Andy Dixon

Andy Dixon

  • 65 Posts
  • 5 Reply Likes
K. Useful messages seem to be lacking.

I have looked through my config.xml and seems to be matching up with https://build.phonegap.com/docs/confi...

So unless someone has pushed something live without updating documentation, I'm up a well populated watery location without any form of propulsion.
Photo of Yann S

Yann S

  • 214 Posts
  • 7 Reply Likes
Can you post your config ?
Photo of Andy Dixon

Andy Dixon

  • 65 Posts
  • 5 Reply Likes
Hi,

Here's the config file - thanks:

<?xml version="1.0" encoding="UTF-8"?>

<widget xmlns = "http://www.w3.org/ns/widgets&quot;
xmlns:gap = "http://phonegap.com/ns/1.0&quot;
id = "com.test.test"
versionCode = "112"
version = "1.1.2">

<name>Test</name>

<description>
Test Application
</description>

<author href="http://www.test.com&quot; email="test@test.com">
Test
</author>

<feature name="http://api.phonegap.com/1.0/device&quot; />
<feature name="http://api.phonegap.com/1.0/camera&qu...;
<feature name="http://api.phonegap.com/1.0/contacts&...;
<feature name="http://api.phonegap.com/1.0/file&quot...;
<feature name="http://api.phonegap.com/1.0/geolocati...;
<feature name="http://api.phonegap.com/1.0/media&quo...;
<feature name="http://api.phonegap.com/1.0/network&q...;
<feature name="http://api.phonegap.com/1.0/notificat...;

<preference name="phonegap-version" value="3.0.0" /> <!-- all: current version of PhoneGap -->
<preference name="orientation" value="portrait" /> <!-- all: default means both landscape and portrait are enabled -->
<preference name="target-device" value="handset" /> <!-- all: possible values handset, tablet, or universal -->
<preference name="fullscreen" value="true" /> <!-- all: hides the status bar at the top of the screen -->
<preference name="webviewbounce" value="false" /> <!-- ios: control whether the screen 'bounces' when scrolled beyond the top -->
<preference name="prerendered-icon" value="false" /> <!-- ios: if icon is prerendered, iOS will not apply it's gloss to the app's icon on the user's home screen -->
<preference name="stay-in-webview" value="false" /> <!-- ios: external links should open in the default browser, 'true' would use the webview the app lives in -->
<preference name="ios-statusbarstyle" value="black-opaque" /> <!-- ios: black-translucent will appear black because the PhoneGap webview doesn't go beneath the status bar -->
<preference name="detect-data-types" value="false" /> <!-- ios: controls whether data types (such as phone no. and dates) are automatically turned into links by the system -->
<preference name="exit-on-suspend" value="true" /> <!-- ios: if set to true, app will terminate when home button is pressed -->
<preference name="show-splash-screen-spinner" value="true" /> <!-- ios: if set to false, the spinner won't appear on the splash screen during app loading -->
<preference name="auto-hide-splash-screen" value="true" /> <!-- ios: if set to false, the splash screen must be hidden using a JavaScript API -->
<preference name="disable-cursor" value="false" /> <!-- blackberry: prevents a mouse-icon/cursor from being displayed on the app -->
<preference name="android-minSdkVersion" value="7" /> <!-- android: MIN SDK version supported on the target device. MAX version is blank by default. -->
<preference name="android-installLocation" value="auto" /> <!-- android: app install location. 'auto' will choose. 'internalOnly' is device memory. 'preferExternal' is SDCard. -->

<gap:plugin name="com.phonegap.plugins.barcodescanner" />
<gap:plugin name="org.apache.cordova.core.camera" />
<gap:plugin name="org.apache.cordova.core.media-capture" />
<gap:plugin name="org.apache.cordova.core.console" />
<gap:plugin name="org.apache.cordova.core.contacts" />
<gap:plugin name="org.apache.cordova.core.device" />
<gap:plugin name="org.apache.cordova.core.audiohandler" />
<gap:plugin name="org.apache.cordova.core.dialogs" />
<gap:plugin name="org.apache.cordova.core.network-information" />

<icon src="icons/icon.png" width="57" height="57" />
<icon src="icons/icon72.png" width="72" height="72" />
<icon src="icons/icon2x.png" width="120" height="120" />
<icon src="icons/icon114.png" width="114" height="114" />

<gap:splash src="splash.png" />

<access origin="*"/>

<preference name="splash-screen-duration" value="1" />

</widget>
Photo of Andy Dixon

Andy Dixon

  • 65 Posts
  • 5 Reply Likes
..however the feature lines are broken for some reason. They are perfectly formed in the config file..
Photo of Red2678

Red2678

  • 255 Posts
  • 0 Reply Likes
I have not yet tried it out, but great news!
Photo of Andy Dixon

Andy Dixon

  • 65 Posts
  • 5 Reply Likes
I've pinned the issue down to this chunk of the xml:

<gap:plugin name="org.apache.cordova.core.camera" />
<gap:plugin name="org.apache.cordova.core.media-capture" />
<gap:plugin name="org.apache.cordova.core.console" />
<gap:plugin name="org.apache.cordova.core.contacts" />
<gap:plugin name="org.apache.cordova.core.device" />
<gap:plugin name="org.apache.cordova.core.audiohandler" />
<gap:plugin name="org.apache.cordova.core.dialogs" />
<gap:plugin name="org.apache.cordova.core.network-information" />

Its as per the documentation, and surely its been tested, so I am guessing the documentation is wrong?
Photo of Ian

Ian

  • 106 Posts
  • 6 Reply Likes
You could try taking out each one until it works, as tedious and annoying as that would be.
Photo of Andy Dixon

Andy Dixon

  • 65 Posts
  • 5 Reply Likes
*groan*
Photo of ryan

ryan, Developer

  • 1538 Posts
  • 132 Reply Likes
@Andy as it appears you figured out by trial and error, the problem was with the org.apache.cordova.core.media-capture plugin. It is throwing a compilation error -- we are looking into it. Sorry for the inconvenience.
Photo of Yann S

Yann S

  • 214 Posts
  • 7 Reply Likes
plugin unsupported: com.adobe.plugins.gaplugin
Photo of Kurt002

Kurt002

  • 6 Posts
  • 0 Reply Likes
Hi I posted two bugs in other threads, before finding this thread.

ENCODING problems
version: Barcodescanner 1.0.2
Compiled through build.phonegap.com PhoneGap 3.0.0

platform: Android (tested on Galaxy Nexus 4.1.2)

1) Barcodescanner crashes on Settings button
- Scanner crashes, when you encode and while it shows the barcode you press the settings button.
2) Success callback
- Success callback is not executed
- How can I get the base64 encoded image to show it in the app?
- How can I keep the plugin from showing the fullscreen result? (I would prefer to get it as base64)
- Which options can I pass to the Encoder?

platform: iOS (ios6)
1) Encoding throws: encoding failed: encode function not supported.
Photo of Gotta Getmedat

Gotta Getmedat

  • 39 Posts
  • 0 Reply Likes
What platforms are supported now?
This document appears out of date.
http://build.phonegap.com/docs/config...
Photo of Yann S

Yann S

  • 214 Posts
  • 7 Reply Likes
Hello, do tou have any information for gaplugin support ? because google analytics plugin dont work for now :(
Photo of Aaron

Aaron

  • 9 Posts
  • 0 Reply Likes
The media-capture plugin is causing the app to crash now on 3.0.0 and cordova 3.1.0. As soon as the video is captured and the user exits the native application, the Android and Windows 8 app crashes. iOS still works fine. App id: 609080
Photo of ryan

ryan, Developer

  • 1538 Posts
  • 132 Reply Likes
Aaron actually -- this may actually be a symptom of malformed JS -- see here:

https://issues.apache.org/jira/browse...

I've reproduce your issue and will see if I too can trace the source.
Photo of ryan

ryan, Developer

  • 1538 Posts
  • 132 Reply Likes
Right so this is a bug with Cordova -- not PhoneGap Build. Did you have this working with an earlier version of Cordova? If so you may have to revert to that, and keep an eye on the JIRA issue for a fix version.
Photo of Aaron

Aaron

  • 9 Posts
  • 0 Reply Likes
Thanks Ryan. I really appreciate you following up and tracking this down so quickly.
Photo of raphael.cohen

raphael.cohen

  • 11 Posts
  • 0 Reply Likes
Hey. I'am also getting an error:plugin unsupported: org.apache.cordova.inappbrowser

On phonegap build. All I did was add the following line in my config file:

Oh well.... I'll try again tomorow.
Photo of ryan

ryan, Developer

  • 1538 Posts
  • 132 Reply Likes
Can't read your code snippet, you need to use code tags to escape it.

Can't reproduce your issue. Here's an example including the inappbrowser plugin that is working fine:

https://github.com/wildabeast/PhoneGa...
Photo of mela mobile

mela mobile

  • 3 Posts
  • 0 Reply Likes
I am trying to use GA plugin with Phone-gap 2.9.0 and I am getting following error:

Error: Plugin doesn't support this project's Cordova version. Cordova: 2.9.0, failed version requirement: >=3.0.0

Is GA plugin isn't supported on phone-gap 2.9 anymore?