cordova

Manually install Device plugin (and others) into cordova 3.0

邮差的信 提交于 2020-01-10 08:29:28
问题 Phonegap/Cordova 3.0 has moved into a modular design starting with version 3.0. For example, to call the device.version API, you need to include the Device plugin into your project. Anyone can provide me with clear instructions on how to install the Device (or any other) cordova API plugin into a new iOS project (using XCode) AND Android (using Eclipse)? All I could find is details using Node.js and/or PlugMan. Needing an automated script to do the basic job of adding a plugin is undesirable

Cordova/Phonegap 3.1 keyboard (still) overlays focused form fields - iOS 7

不想你离开。 提交于 2020-01-10 08:27:26
问题 Hi guys I just upgraded from cordova 3.0 to 3.1 and I'm still experiencing a very disturbing issue (which still exists when playing with KeyboardShrinksView preference). Whenever I'm focusing an element (input/textarea) which triggers the keyboard opening, the element gets hidden behind the keyboard and I need to scroll down (using webkit-overflow-scrolling for scrolling by the way) in order to see the element and its content. When KeyboardShrinksView is set to true the page won't even scroll

Phonegap platform add android

不问归期 提交于 2020-01-10 05:46:07
问题 I am having problem with Phonegap. When I want to add platform with following commands got error: $ export PATH=${PATH}:/ProgramFiles/Android/adt-bundle-linux-x86_64-20140321/sdk/platform-tools:/ProgramFiles/Android/adt-bundle-linux-x86_64-20140321/sdk/tools $ cordova create hello com.example.hello "HelloWorld" Creating a new cordova project with name "HelloWorld" and id "com.example.hello" at location "/home/matjazmav/hello" $ cd hello /hello$ cordova platform add android Creating android

localStorage cleared on app restart with Cordova 1.7 and iOS 5.1.1

余生长醉 提交于 2020-01-10 04:40:31
问题 From my extensive reading, the iOS 5.1 localStorage/WebSQL behavior change that Apple instituted has been fully rolled into Cordova 1.6.0. However, while running on my (new) application on Cordova 1.7.0 and iOS 5.1.1, I am still seeing ugly, incorrect behavior. I use window.localStorage to store and retrieve data. E.g. window.localStorage.getItem("activeFormId") window.localStorage.setItem("activeFormId", formId); These work flawlessly during the same session of the Cordova-based app. If I

Upgrade to phonegap 3.3.0

ε祈祈猫儿з 提交于 2020-01-10 03:48:26
问题 I Am upgrading my phonegap project(s) from phonegap 2.9.0 to the latest one, phonegap 3.3.0. Because it has a lot of big improvements. It's about an android project, but soon to be ios as well However, I Am struggling with it a few days, and still no working code. I have done this: Installed phonegap and creted a new project like the the manual: http://phonegap.com/install/ After this I slowly inserted my old code into the www folder and installed the plugins on the new 3.0 way. But whatever

Phonegap GPS without internet

百般思念 提交于 2020-01-10 03:38:24
问题 I m trying to make an android app which count the distance traveled from log,lan values with phonegap.But phonegap GPS work only when internet or wifi in ON condition.How can get log ,lan values without internet by using geolocation api.Thanks in advance . 回答1: See the PhoneGap API Docs for Geolocation under the geoLocationOptions: Android Quirks The Android 2.x simulators will not return a geolocation result unless the enableHighAccuracy option is set to true. { enableHighAccuracy: true }

how to stop after “cordova run ios”

泪湿孤枕 提交于 2020-01-10 01:35:53
问题 What is the command to stop running after using cordova run ios in terminal? I found one topic about this with 1 answer saying it's quit but that didn't work. Right now I close terminal every time which is very time consuming. If i press ctrl+c I get the following: (lldb) ^CTraceback (most recent call last): File "/private/tmp/fruitstrap_.py", line 17, in connect_command event = lldb.SBEvent() File "/Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Versions/A/Resources/Python

Create PhoneGap 3.0.0 project error - 'platform add android' i not a node

守給你的承諾、 提交于 2020-01-09 19:08:04
问题 I am trying to get setup with phonegap 3.0.0. I am totally new to phone app development....just fyi. Per instructions on phonegap's site (here), I am attempting the "platform add android" commmand from within my newly created project ("phonegaptest") and getting the following errror: Found one other instance of this on the web and it was a path issue, I don't think mine is as I can type 'android' at the command prompt and it shows a list of valid commands. 回答1: Instead of attempting the

Create PhoneGap 3.0.0 project error - 'platform add android' i not a node

走远了吗. 提交于 2020-01-09 19:06:08
问题 I am trying to get setup with phonegap 3.0.0. I am totally new to phone app development....just fyi. Per instructions on phonegap's site (here), I am attempting the "platform add android" commmand from within my newly created project ("phonegaptest") and getting the following errror: Found one other instance of this on the web and it was a path issue, I don't think mine is as I can type 'android' at the command prompt and it shows a list of valid commands. 回答1: Instead of attempting the

Create PhoneGap 3.0.0 project error - 'platform add android' i not a node

这一生的挚爱 提交于 2020-01-09 19:05:46
问题 I am trying to get setup with phonegap 3.0.0. I am totally new to phone app development....just fyi. Per instructions on phonegap's site (here), I am attempting the "platform add android" commmand from within my newly created project ("phonegaptest") and getting the following errror: Found one other instance of this on the web and it was a path issue, I don't think mine is as I can type 'android' at the command prompt and it shows a list of valid commands. 回答1: Instead of attempting the