2. If you're utilizing a whitelist to access remote resources, you now need to use the whitelist plugin:
<gap:plugin name="cordova-plugin-whitelist" source="npm" />
3. You now need to source your core plugins from npm (see above whitelist plugin for example). We no longer update the core plugins on PGB.
Issues (workin on em)
-
-
Add more below as you find it!
ryan, Developer
- 1538 Posts
- 132 Reply Likes
Posted 5 years ago
Alan Neveu, Champion
- 213 Posts
- 11 Reply Likes
ryan, Developer
- 1538 Posts
- 132 Reply Likes
Alan Neveu, Champion
- 213 Posts
- 11 Reply Likes
Alan Neveu, Champion
- 213 Posts
- 11 Reply Likes
- 17 Posts
- 2 Reply Likes
I have resolved problem
Please use below code in config.xml file
gap:plugin name="org.apache.cordova.battery-status" source="npm" />
gap:plugin name="org.apache.cordova.camera" source="npm" />
gap:plugin name="org.apache.cordova.media-capture" source="npm" />
gap:plugin name="org.apache.cordova.console" source="npm" />
gap:plugin name="org.apache.cordova.contacts" source="npm"/>
gap:plugin name="org.apache.cordova.device" source="npm"/>
gap:plugin name="org.apache.cordova.device-motion" source="npm"/>
gap:plugin name="org.apache.cordova.device-orientation" source="npm"/>
gap:plugin name="org.apache.cordova.dialogs" source="npm"/>
gap:plugin name="org.apache.cordova.file" source="npm" />
gap:plugin name="org.apache.cordova.file-transfer" source="npm"/>
gap:plugin name="org.apache.cordova.geolocation" source="npm"/>
gap:plugin name="org.apache.cordova.globalization" source="npm"/>
gap:plugin name="org.apache.cordova.inappbrowser" source="npm"/>
gap:plugin name="org.apache.cordova.media" source="npm" />
gap:plugin name="org.apache.cordova.network-information" source="npm" />
gap:plugin name="org.apache.cordova.splashscreen" source="npm"/>
gap:plugin name="org.apache.cordova.vibration" source="npm" />
(i have removed the < at the start so they display here) third party plugins like Google connect dont need it.
Petra V., Champion
- 7794 Posts
- 1391 Reply Likes
ryan, Developer
- 1538 Posts
- 132 Reply Likes
- Hydration + Android cli-5.1.1 build fails
- Using a signing key w/ Android cli-5.1.1 build fails
Alan Neveu, Champion
- 213 Posts
- 11 Reply Likes
ryan, Developer
- 1538 Posts
- 132 Reply Likes
Alan Neveu, Champion
- 213 Posts
- 11 Reply Likes
ryan, Developer
- 1538 Posts
- 132 Reply Likes
- 6 Posts
- 0 Reply Likes
I have this feature in the config:
My script:
function onDeviceReady() {
document.addEventListener('menubutton', onMenuKeyDown, false);
document.addEventListener('searchbutton', onSearchKeyDown, false);
}
/**
* Detects if instance runs in PhoneGap or just in a browser
* @return {boolean}
*/
function isPhoneGap() {
var app = document.URL.indexOf('http://') === -1 && document.URL.indexOf('https://') === -1; // && document.URL.indexOf( 'file://' );
if (app) {
return true;
}
return false;
}
if (isPhoneGap()) {
// Call onDeviceReady when PhoneGap is loaded.
//
// At this point, the document has loaded but phonegap.js has not.
// When PhoneGap is loaded and talking with the native device, it will call the event `deviceready`.
document.addEventListener('deviceready', onDeviceReady, false);
}
Any idea's?
- 6 Posts
- 0 Reply Likes
(feature name="http://api.phonegap.com/1.0/device" /)
(preference name='phonegap-version' value='cli-5.1.1' /)
(preference name="permissions" value="none"/)
(gap:plugin name="Device" value="org.apache.cordova.core.Device" source="npm" /)
(gap:plugin name="cordova-plugin-splashscreen" source="npm" /)
(gap:plugin name="cordova-plugin-inappbrowser" source="npm" /)
(gap:plugin name="cordova-plugin-whitelist" source="npm" /)
This is with braces.
Any idea's?
- 730 Posts
- 18 Reply Likes
- 6 Posts
- 0 Reply Likes
deviceready event fires.. but the menubutton event (set with document.addEventListener('menubutton', onMenuKeyDown, false);) doesn't fire.
This worked with PGB version 3.7.0, in cli-5.1.1 this is broken.
What can I do to solve this issue?
- 730 Posts
- 18 Reply Likes
I also have the same trouble just like ernst said
not only 'menubutton' but also 'backbutton' also fail after upgrading to cli-5.1.1
- 1840 Posts
- 78 Reply Likes
<gap:plugin name="cordova-plugin-whitelist" source="npm" version="1.0.0" />Also, if you have compile errors for Android after adding the Whitelist plugin, upgrade all first-party Cordova plugins used in your app to use their npm sources:
<gap:plugin name="cordova-plugin-file" source="npm" /><gap:plugin name="cordova-plugin-file-transfer" source="npm" /><gap:plugin name="cordova-plugin-inappbrowser" source="npm" />-yiming
- 6 Posts
- 0 Reply Likes
Thanks. Setting a version is a good idea :-)
Do you recognize the problem with the failing menubutton?
Phonegap.js is included on both html source and as file, and the deviceready event fires.
However, the alert I put in the onMenbuKeyDown() function doesn't show up.
Regards,
Ernst
Petra V., Champion
- 7794 Posts
- 1391 Reply Likes
- 6 Posts
- 0 Reply Likes
Thanks for your answer. I don't include this file manually, but when I check the apk, this file is included correctly by PGB.
Regards,
Ernst
- 730 Posts
- 18 Reply Likes
- 1840 Posts
- 78 Reply Likes
-yiming
- 730 Posts
- 18 Reply Likes
thanks for your reply
so...
how about my case => "backbutton"
I also try in Cordova Cli 5.1.1,it's work
but phonegap cli 5.1.1 (build.phonegap.com) not work
- 730 Posts
- 18 Reply Likes
it's the "cache" problem to cause the "backbutton" not work
sorry
- 730 Posts
- 18 Reply Likes
- 6 Posts
- 0 Reply Likes
- 1 Post
- 0 Reply Likes
JesseMonroy650 (Volunteer), Champion
- 3325 Posts
- 122 Reply Likes
can you please update the original post to reflect that "Hydration + Android cli-5.1.1" is fixed. This particular post use for an FAQ list the developers on the Google Group is developing.
This will likely go out on Monday (Aug 17, 2015)
Top Mistakes by Developers new to Cordova/Phonegap
TIA
Jesse
- 17 Posts
- 2 Reply Likes
I have resolved problem
Please use below code in config.xml file
gap:plugin name="org.apache.cordova.battery-status" source="npm" />
gap:plugin name="org.apache.cordova.camera" source="npm" />
gap:plugin name="org.apache.cordova.media-capture" source="npm" />
gap:plugin name="org.apache.cordova.console" source="npm" />
gap:plugin name="org.apache.cordova.contacts" source="npm"/>
gap:plugin name="org.apache.cordova.device" source="npm"/>
gap:plugin name="org.apache.cordova.device-motion" source="npm"/>
gap:plugin name="org.apache.cordova.device-orientation" source="npm"/>
gap:plugin name="org.apache.cordova.dialogs" source="npm"/>
gap:plugin name="org.apache.cordova.file" source="npm" />
gap:plugin name="org.apache.cordova.file-transfer" source="npm"/>
gap:plugin name="org.apache.cordova.geolocation" source="npm"/>
gap:plugin name="org.apache.cordova.globalization" source="npm"/>
gap:plugin name="org.apache.cordova.inappbrowser" source="npm"/>
gap:plugin name="org.apache.cordova.media" source="npm" />
gap:plugin name="org.apache.cordova.network-information" source="npm" />
gap:plugin name="org.apache.cordova.splashscreen" source="npm"/>
gap:plugin name="org.apache.cordova.vibration" source="npm" />
(i have removed the < at the start so they display here) third party plugins like Google connect dont need it.
- 730 Posts
- 18 Reply Likes
please use "cordova-plugin-*"
- 5 Posts
- 0 Reply Likes
my config.xml:
- 5 Posts
- 0 Reply Likes
preference name="phonegap-version" value="cli-5.2.0"/>
preference name="orientation" value="portrait" />
preference name="target-device" value="universal" />
reference name="fullscreen" value="true" />
preference name="webviewbounce" value="true" />
preference name="prerendered-icon" value="true" />
preference name="stay-in-webview" value="false" />
preference name="ios-statusbarstyle" value="black-opaque" />
preference name="detect-data-types" value="true" />
preference name="exit-on-suspend" value="false" />
preference name="show-splash-screen-spinner" value="true" />
preference name="auto-hide-splash-screen" value="true" />
preference name="disable-cursor" value="false" />
preference name="android-minSdkVersion" value="10" />
preference name="android-installLocation" value="auto" />
gap:plugin name="com.phonegap.plugins.barcodescanner"/>
gap:plugin name="cordova-plugin-battery-status" source="npm" />
gap:plugin name="cordova-plugin-dialogs" version="1.1.1" source="npm" />
gap:plugin name="cordova-plugin-inappbrowser" version="1.0.1" source="npm" />
gap:plugin name="cordova-plugin-media" source="npm" />
gap:plugin name="cordova-plugin-network-information" version="1.2.0" source="npm" />
gap:plugin name="cordova-plugin-splashscreen" source="npm" />
gap:plugin name="cordova-plugin-camera" version="1.2.0" source="npm" />
gap:plugin name="cordova-plugin-media-capture" source="npm" />
gap:plugin name="cordova-plugin-device" version="1.0.1" source="npm" />
gap:plugin name="cordova-plugin-device-motion" source="npm" />
gap:plugin name="cordova-plugin-device-orientation" source="npm" />
gap:plugin name="cordova-plugin-file" version="3.0.0" source="npm" />
gap:plugin name="cordova-plugin-file-transfer" version="1.3.0" source="npm" />
- 1840 Posts
- 78 Reply Likes
-yiming
- 4 Posts
- 0 Reply Likes
2015-09-28 08:50:40.607 xcodebuild[78796:3310515] [MT] iPhoneSimulator: SimVerifier returned: Error Domain=NSPOSIXErrorDomain Code=53 "Simulator verification failed." UserInfo=0x7fb81ca83560 {NSLocalizedFailureReason=A connection to the simulator verification service could not be established., NSLocalizedRecoverySuggestion=Ensure that Xcode.app is installed on a volume with ownership enabled., NSLocalizedDescription=Simulator verification failed.}
Build settings from command line:
ARCHS = armv7 arm64
CONFIGURATION_BUILD_DIR = /project/build
CORDOVALIB = /project/CordovaLib
ONLY_ACTIVE_ARCH = NO
OTHER_CODE_SIGN_FLAGS = --keychain /secure.keychain
PROVISIONING_PROFILE = 8895e2d2-c38b-4f06-9efd-d1cda3442c09
=== BUILD TARGET CordovaLib OF PROJECT CordovaLib WITH THE DEFAULT CONFIGURATION (Release) ===
Check dependencies
2015-09-28 08:41:01.128 xcodebuild[1258:3663678] error: Error Domain=NSPOSIXErrorDomain Code=2 "Non-zero exit code 1 returned from shell command: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -v -E -dM -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk -x objective-c -c /dev/null 2>&1" UserInfo=0x7fe89480c6f0 {NSLocalizedDescription=Non-zero exit code 1 returned from shell command: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -v -E -dM -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk -x objective-c -c /dev/null 2>&1, NSLocalizedFailureReason=No such file or directory}
2015-09-28 08:41:01.128 xcodebuild[1258:3663678] Warning: Couldn't discover the 'clang' compiler's built-in search paths and preprocessor definitions for language dialect 'objective-c'.
Compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
Reason: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -v -E -dM -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk -x objective-c -c /dev/null 2>&1
2015-09-28 08:41:01.343 xcodebuild[1258:3663678] error: Error Domain=NSPOSIXErrorDomain Code=22 "Non-zero exit code 1 returned from shell command: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -v -E -dM -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk -x objective-c -c /dev/null 2>&1" UserInfo=0x7fe894e85e30 {NSLocalizedDescription=Non-zero exit code 1 returned from shell command: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -v -E -dM -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk -x objective-c -c /dev/null 2>&1, NSLocalizedFailureReason=Invalid argument}
2015-09-28 08:41:01.344 xcodebuild[1258:3663678] Warning: Couldn't discover the 'clang' compiler's built-in search paths and preprocessor definitions for language dialect 'objective-c'.
Compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
Reason: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -v -E -dM -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk -x objective-c -c /dev/null 2>&1
I have this files
note: android works fine.
my config file
Thanks in advance

- 1840 Posts
- 78 Reply Likes
As for your issue specifically, StackOverflow has a solution: http://stackoverflow.com/questions/29411058/code-53-simulator-verification-failed
-yiming
- 4 Posts
- 0 Reply Likes
- 1 Post
- 0 Reply Likes
- 4 Posts
- 0 Reply Likes
- 4 Posts
- 0 Reply Likes
- 1840 Posts
- 78 Reply Likes
<gap:plugin name="cordova-plugin-file-transfer" source="npm" />
-yiming
- 4 Posts
- 0 Reply Likes
gap:plugin name="cordova-plugin-battery-status" source="npm" />
gap:plugin name="cordova-plugin-camera" source="npm" />
gap:plugin name="cordova-plugin-media-capture" source="npm" />
gap:plugin name="cordova-plugin-console" source="npm" />
gap:plugin name="cordova-plugin-contacts" source="npm" />
gap:plugin name="cordova-plugin-device" source="npm" />
gap:plugin name="cordova-plugin-device-motion" source="npm" />
gap:plugin name="cordova-plugin-device-orientation" source="npm" />
gap:plugin name="cordova-plugin-dialogs" source="npm" />
gap:plugin name="cordova-plugin-file" source="npm" />
gap:plugin name="cordova-plugin-file-transfer" source="npm" />
gap:plugin name="cordova-plugin-geolocation" source="npm" />
gap:plugin name="cordova-plugin-globalization" source="npm" />
gap:plugin name="cordova-plugin-inappbrowser" source="npm" />
gap:plugin name="cordova-plugin-media" source="npm" />
gap:plugin name="cordova-plugin-network-information" source="npm" />
gap:plugin name="cordova-plugin-splashscreen" source="npm" />
gap:plugin name="cordova-plugin-vibration" source="npm" />
what other step i need to do or any wrong, android still cant build.
- 4 Posts
- 0 Reply Likes
Petra V., Champion
- 7794 Posts
- 1391 Reply Likes
?
- 1840 Posts
- 78 Reply Likes
-yiming
Related Categories
-
PhoneGap Build
- 15111 Conversations
- 274 Followers












