cordova-3

Error while adding cordova platform ios

非 Y 不嫁゛ 提交于 2020-02-02 08:01:05
问题 I update my Cordova version 3.6.0 to 4.0.0, Which is latest one on today's date. It allow to add me android platform but while going to add iOS platform it gives following error. Unable to fetch platform ios: Error: No compatible version found: cordova-ios@'>=8458588.0.0-0 <8458589.0.0-0' Valid install targets: ["3.5.0","3.6.0","3.6.1","3.6.3"] I have Xcode6 install on my system. But I can't figure out the problem. 回答1: I solved this problem by reinstalling Cordova using this command $ sudo

Issue with SMS cordova 3.5 plugin for android?

☆樱花仙子☆ 提交于 2020-01-16 18:48:11
问题 I have installed the SMS plugin via CLI, and the installation was done properly. Then I wrote JavaScript code as follows: function sendsms() { alert("click"); var number = $("#numberTxt").val(); var message = $("#messageTxt").val(); var intent = ""; //leave empty for sending sms using default intent var success = function() { alert('Message sent successfully'); }; var error = function(e) { alert('Message Failed:' + e); }; sms.send(number, message, intent, success, error); } HTML code: <input

Cordova removing my changes in main activity class after building cordova project

泄露秘密 提交于 2020-01-16 01:09:07
问题 I am adding some extra stuff in my cordova project's Main activity class (overriding some functions like onResume) but cordova remove them after every cordovaBuild. What should I do to prevent this behaviuor? 回答1: Sorry I have no time right now to elaborate. If you don't know how to do plugins, the easyest is to go with hooks. Basically hooks are scripts you can add between each step of cordova cli. so you would add a script in projecthome/.cordova/hooks/before_prepare to save your java file

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

Phonegap 3.3.0 cannot add any plugin

家住魔仙堡 提交于 2020-01-06 04:03:12
问题 I am trying to add barcodescanner plugin to an Phonegap 3.3.0 project. Steps to reproduce: $ cordova create app de.app.name "app-name" $ cd app $ cordova platform add ios $ cordova plugin add com.phonegap.plugins.barcodescanner Fetching plugin from "com.phonegap.plugins.barcodescanner"... Starting installation of "com.phonegap.plugins.barcodescanner" for ios Error during processing of action! Attempting to revert... /usr/local/lib/node_modules/cordova/node_modules/q/q.js:126 throw e; ^ Error:

Cordova 3.x forcing screen orientation at run-time IOS [duplicate]

£可爱£侵袭症+ 提交于 2020-01-06 04:01:22
问题 This question already has answers here : PhoneGap - Forcing Landscape orientation (5 answers) Closed 4 years ago . I'm building an app with cordova where forcing screen orientation at runtime on certain pages is crucial. I found a plugin com.phonegap.plugins.OrientationLock that works very well on android devices but I can't find any solution for IOS... Have anyone solved this issue? Thank you 回答1: Updated response : I just found a plugin that enables this: https://github.com/Adlotto/cordova

inAppbrowser and webSql failure - cordova

自闭症网瘾萝莉.ら 提交于 2020-01-06 02:38:16
问题 I'm using cordova 3.4.1 and inAppbrowser. I'm using webSql. At the page load I'm retriving some data from database. Works fine at that moment. Next with some button press, database entry is updated and a inAppBrowser window is opened. tx.executeSql('UPDATE tb_comic SET page="'+image_id+'" WHERE id="'+id+'"'); ref=window.open('base.html','_blank','location=no, toolbar=yes, EnableViewPortScale=yes'); ref.addEventListener('exit', iabClose); function iabClose(event) { alert(event.type); ref.close

phonegap filereader onloadend doesn't work

只谈情不闲聊 提交于 2020-01-04 05:43:31
问题 I'm using phonegap to take a picture and put it into a img-container. navigator.camera.getPicture(onSuccess, onFail); var onSuccess = function(imageURI) { var pic = document.getElementById('picture'); pic.style.display = 'block'; pic.src = imageURI; }; var onFail = function(message) { $('#infoField').val(message); }; That works perfect. Now I want to load the picture with a format to be alble to send it over a websocket. Therefor I use the fileReader and set the type to dataUrl. var reader =

Cordova CLI, using Git, and saving plugins/platforms

核能气质少年 提交于 2020-01-01 02:36:05
问题 I'm trying to figure out how to reconcile some Cordova + git "best practices" with what I think is reality, and I'm hoping someone can shed some light on this for me. If I understand correctly, the current "best practice" is to add these directories to my .gitignore (from the book "Developing with Cordova CLI", the current version): platforms/ plugins/ node_modules/ This removes the easily downloadable plugins and mostly boilerplate platform code from version control because it can be easily

Undefined symbols for architecture i386 while building Cordova 3.4 application

て烟熏妆下的殇ゞ 提交于 2019-12-31 04:30:15
问题 I'm getting the build error Undefined symbols for architecture i386 on my Mac when building a Cordova application. I'm using Cordova version 3.4 and Xcode 5.0.2. Here is the snapshot of my project's Xcode properties Build Settings -> Architectures Undefined symbols for architecture i386: "_AudioServicesAddSystemSoundCompletion", referenced from: _playBeep in CDVNotification.o "_AudioServicesCreateSystemSoundID", referenced from: _playBeep in CDVNotification.o "