phonegap-build

Phonegap Camera API - Cannot read property 'DATA_URL' of undefined

你说的曾经没有我的故事 提交于 2019-11-28 06:16:45
问题 I am creating an Android app using Phonegap. I have installed phonegap using the commands on their website. Everything is up and running with the SDK and Emulator. Now when I run the example camera script from their website to get it working before I start cusotmising it. Everytime I run the code below (even though I have the file linked to phonegap.js) it keeps throwing an error. I mean the script runs as far as the HTML and showing the buttons, but when the button is clicked nothing happens

Building an archive for XCode 4.6 release with phonegap v 2.9 fails

寵の児 提交于 2019-11-28 03:16:29
This appears to be a recurring phenomena. I saw a number of prior questions, where the solution was to delete armv6, and then the archive would work. Of course, armv6 is gone. So, now, building with both current, Xcode 4.6.3 phonegap 2.9. And yes, the app works fine on iphones, ipads, and in the simulator. I get this message at the end of the create archive step: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch armv7s -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk -L/Users/peeq

Sign Android APK with a certificate that expires further in to the future

廉价感情. 提交于 2019-11-28 01:14:17
I have built an android app using phonegap build. I am now trying to get this on the play store but keep getting the following error You uploaded an APK signed with a certificate that expires too soon. You need to sign your APK with a certificate that expires farther into the future I have created the signing key with java jdk1.8.0 keytool and I have used this code keytool.exe -genkey -v -keystore release.keystore -alias TicTacToe -keyalg RSA -keysize 2048 -validity 10000 I don't understand. As far as I can tell I am setting the date 10,000 days from now which should be plenty? Set expiration

Using camera on Phonegap app with only HTML input, without Camera API

不问归期 提交于 2019-11-27 23:52:40
Is it possible to get a photo from camera in a phonegap app only with HTML input, without Camera API? Scenario I developed an app and encapsulated it through Phonegap (Build) Users can submit photos using html file input. But there is no option to take a new photo from camera, only gallery and files (and any other storage app like drive or dropbox, if it is the case). I would like to enable the camera option, but without the PhoneGap's Camera API. Solutions I've tried the following solutions without success: 1. The "capture" attribute (from Raymond Camden post ) With this method, all you have

ionic build android failure - Execution failed for task processDebugResources

老子叫甜甜 提交于 2019-11-27 21:11:29
I am using Mac Yosemite. Getting the following failure on running a build for android platform : FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':processDebugResources'. > com.android.ide.common.internal.LoggedErrorException: Failed to run command: /Users/sairamk/Development/android-sdk-macosx/build-tools/22.0.1/aapt package -f --no-crunch -I /Users/sairamk/Development/android-sdk-macosx/platforms/android-22/android.jar -M /Users/sairamk/projects/dummy_app/platforms/android/build/intermediates/manifests/full/debug/AndroidManifest.xml -S /Users/sairamk

PhoneGap Build iOS app has blank white screen after splash screen

可紊 提交于 2019-11-27 19:06:44
I'm using PhoneGap Build 3.0, attempting to get rid of the blank white screen that appears after the splash screen. I've done research and all I can find is references to PhoneGap and Cordova, not PhoneGap Build. None of the things I've tried have worked--mainly, disabling the auto splash screen hide, and hiding it automatically with JavaScript: In the config.xml: <feature name="SplashScreen"> <param name="ios-package" value="CDVSplashScreen" /> <param name="onload" value="true" /> </feature> In index.html: <script type="text/javascript" charset="utf-8" src="cordova.js"></script> <script type=

External links in phonegap app do not open well

时间秒杀一切 提交于 2019-11-27 18:52:19
So I have a phonegap project with Phonegap 2.9.0 and building with PhonegapBuild. I got external links in my app, that I would like to open inapp or using the default device browser outside of my app. I am ok for both solutions. Today my app open links inapp but it goes fullscreen, no zoom possible, and no button to come back in the app... I am trying to figure out a solution for days, and looking at the same kind of questions here but nothing work good. Could somebody explain clearly what is all this stuff about, and what are the different choices/params because I can tell that it is not

Using Angular UI-Router with Phonegap

若如初见. 提交于 2019-11-27 18:00:39
问题 I currently have a project built with Angular that I'm deploying to the Phonegap Build service to create iOS and Android distributions. Originally, I was using Angular's built in routing service. However, the need to nest multiple views facilitated my adoption of the Angular UI-Router. I've built a simple routing system that works when testing locally via a web browser and using Ripple Emulator. The index.html is as follows: <html lang="en" ng-app="myApp"> <head> <meta charset="utf-8" />

Phonegap Build Config.xml Malformed

陌路散爱 提交于 2019-11-27 15:08:22
问题 If I add a plugin to the config.xml and upload my project, the config appears to be malformed. <?xml version='1.0' encoding='utf-8'?> <widget id="com.example.app" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0" > <name>App</name> <description> A sample Apache Cordova application that responds to the deviceready event. </description> <author email="dev@cordova.apache.org" href="http://cordova.io"> Me </author> <content src="index.html" />

How can I get WiFi Network information (SSID) in a Phonegap app?

拥有回忆 提交于 2019-11-27 14:05:07
问题 I am making a Phonegap app. My requirement is to show different views to users depending on whether they are using a home network or a public network. Is there any plugin or any other way that can help to get the connected network information. (Network SSID). Thanks. 回答1: There is this plugin for Android and iOS : cordova plugin add wifiwizard If you want to get the current SSID of the network you are connected to: function ssidHandler(s) { alert("Current SSID"+s); } function fail(e) { alert(