cordova-3

Cordova: Is it possible to have different app IDs for android and ios platforms?

谁说胖子不能爱 提交于 2019-11-28 07:30:10
Let's say I have a Cordova application with an id of com.StackOverflowExample.MyQuestion, which I created with Cordova 3 using the CLI ( cordova create ). I have added iOS and Android platforms for my app, and have submitted the app to Apple and to Google Play. Now, however, after submitting my app to Play, I seem to have misplaced my password for the keystore I used to sign my APK file. I have tried everything, and there is no way I will recover it. Because Google Play does not allow me to sign a subsequent APK submitted to Play under the same app ID as a prior APK signed by a different

How to call native function from cordova 3.x

孤人 提交于 2019-11-28 02:18:28
问题 How can I call a native function from cordova/phonegap webview for example for showing an ad. EDIT: OK I FUNALLY GOT IT and I'm gonna write some steps for all of you who don't know how to do that (just to spare 2 days of your lifetime :D) A) if you have just cordova/phonegap and and wish to call from js do this: 1) Replace the following code with your existing DroidGap Activity. @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); super.init(); //

Phonegap events online/offline not working

走远了吗. 提交于 2019-11-27 18:34:07
问题 I am writing app with phonegap(cordova) 3.0.0 and events "online" and "offline" doesn't work. When I tried event "resume", this event was OK. I am using XCode 4.5 and IOS. This is my main javascript file of phonegap project: var app = { initialize: function() { this.bindEvents(); }, // Bind Event Listeners // // Bind any events that are required on startup. Common events are: // 'load', 'deviceready', 'offline', and 'online'. bindEvents: function() { document.addEventListener('deviceready',

.gitignore for PhoneGap/Cordova 3.0 projects - what should I commit?

无人久伴 提交于 2019-11-27 16:58:50
I just tried to create a new phonegap 3.0 project... Note: I'm new to phonegap. Anyways, I see the project folder contains: .cordova merges platforms plugins www And having tried phonegap local run android I see a lot of binary/generated files in platforms/android . This leaves me wondering, what parts of this folder structure should I add to my git repository. Normally, I would consider it extremely poor practice to commit binary files. Hence, I would normally add patterns like bin/ , obj/ , *.o , *.pyc etc. to .gitignore to avoid polluting my git repository with things that only serves to

detecting android softkeyboard show/hide events

拟墨画扇 提交于 2019-11-27 15:03:47
问题 I am trying to detect showKeyboard and hidekeyboard events on phonegap. For that purpose, on deviceready event I placed following code: bindEvents: function() { document.addEventListener('deviceready', this.onDeviceReady, false); }, // deviceready Event Handler // // The scope of 'this' is the event. In order to call the 'receivedEvent' // function, we must explicity call 'app.receivedEvent(...);' onDeviceReady: function() { document.addEventListener("menubutton",app.onMenuKeyPress,false);

cordova build Command failed with exit code EACCES

孤街醉人 提交于 2019-11-27 12:45:41
问题 Cordova build failed with error code : EACCESS $ cordova build android Running command: /home/user/proj1/platforms/android/cordova/build execvp(): Permission denied Error: /home/user/proj1/platforms/android/cordova/build: Command failed with exit code EACCES at ChildProcess.whenDone (/usr/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:131:23) at ChildProcess.EventEmitter.emit (events.js:95:17) at Process.ChildProcess._handle.onexit (child_process.js:795:12) ======

Cordova cannot add Android failed with exit code ENOENT

£可爱£侵袭症+ 提交于 2019-11-27 08:30:58
I am trying to create an Android project with Cordova, however i am getting an ENOENT error although i followed the tutorial step by step very carefully, this is getting me angry. First this is the screenshot of the error: Here are information about my software and hardware/os: Hardware and OS: Intel(R) Core(TM) i5-3230M CPU @ 2.60 GHz 2.60GHz 4 GB RAM 64 bit operating system, x 64 based processor Windows 8 Software: Here are some of the outputs of my command line for the related software. $ npm -version Output: 1.4.8 $ cordova -version Output: 3.4.1-0.1.0 $ ant -version Output: Apache Ant(TM)

Cordova: Is it possible to have different app IDs for android and ios platforms?

回眸只為那壹抹淺笑 提交于 2019-11-27 01:49:32
问题 Let's say I have a Cordova application with an id of com.StackOverflowExample.MyQuestion, which I created with Cordova 3 using the CLI ( cordova create ). I have added iOS and Android platforms for my app, and have submitted the app to Apple and to Google Play. Now, however, after submitting my app to Play, I seem to have misplaced my password for the keystore I used to sign my APK file. I have tried everything, and there is no way I will recover it. Because Google Play does not allow me to

Add entry to iOS .plist file via Cordova config.xml

微笑、不失礼 提交于 2019-11-27 00:01:38
I am new to the Cordova CLI. I need to perform the following steps programmatically via Cordova. In the project .plist add a new row Enter the following values in the new row: Key : GDLibraryMode Type :String (default) Value :GDEnterpriseSimulation I think I need to do this in the config.xml file in my project's root (or maybe the one in the "platforms" folder). Can someone explain to me how to add the entry via the config.xml so that the above entry is added at compile-time? I am using Cordova 3.3.1-0.42 (I know it is not the latest). I have already made my project and all is fine, I just

Should a phonegap plugin be declared in the config.xml file?

让人想犯罪 __ 提交于 2019-11-26 23:24:00
I am a newbie in phonegap development so I have a couple of questions: 1) I am using the accelerometer plug-in. I read in the manual that i need to declare the plugin in the config.xml file in order to use it. However I noticed that even if i remove the declaration from the config.xml <feature name="Accelerometer"> <param name="android-package" value="org.apache.cordova.AccelListener" /> </feature> the accelerometer still works. So I would like to ask you if in the phonegap 3.0.0 version , the use of the config.xml is obsolete. If that s the case then where is the binding takes place? 2) I use