cordova

Android SDK not found.

跟風遠走 提交于 2020-01-15 09:54:06
问题 Android SDK not found. Make sure that it is installed. If it is not at the default location, set the ANDROID_HOME environment variable. This is the problem Cordova cant acces to the SDK even it is installed , i dont know how to change the default location but i have tried to create the android_home variable but it didnt work . 回答1: This problem is connected with actualization of Android. Android depreciated his tool: android , you can check it typing android in command line. You should see: *

Ionic with AngularJS - SyntaxError: Unexpected token [

拥有回忆 提交于 2020-01-15 09:51:34
问题 I'm trying to follow this tutorial: https://scotch.io/tutorials/create-your-first-mobile-app-with-angularjs-and-ionic#toc-making-a-todo-app and when I type ionic -v or just ionic it is giving me this error: AppData\Roaming\npm\node_modules\ionic\dist\index.js:24 const [xcode, iosDeploy, iosSim,] = yield Promise.all([ ^ Io at exports.runInThisContext (vm.js:53:16) at Module._compile (module.js:387:25) at Object.Module._extensions..js (module.js:422:10) at Module.load (module.js:357:32) at

Ionic with AngularJS - SyntaxError: Unexpected token [

白昼怎懂夜的黑 提交于 2020-01-15 09:51:13
问题 I'm trying to follow this tutorial: https://scotch.io/tutorials/create-your-first-mobile-app-with-angularjs-and-ionic#toc-making-a-todo-app and when I type ionic -v or just ionic it is giving me this error: AppData\Roaming\npm\node_modules\ionic\dist\index.js:24 const [xcode, iosDeploy, iosSim,] = yield Promise.all([ ^ Io at exports.runInThisContext (vm.js:53:16) at Module._compile (module.js:387:25) at Object.Module._extensions..js (module.js:422:10) at Module.load (module.js:357:32) at

Multi Device Hybrid Apps on debugging using Ripple Emulator does not open chrome

混江龙づ霸主 提交于 2020-01-15 08:28:33
问题 I have created a blank project using Visual Studio 2013 CTP version for Multi Device Hybrid App template. When I run the project for Android platform using Ripple Nexus Galaxy, it does not open the chrome. The output window displays a message that Deployment succeeded. But does not really open the browser window. Is there a configuration that I need to look at? 回答1: When this issue occurs, what works is to exit Visual Studio, kill any Chrome processes from the task manager, and reboot the

Cordova In App Browser event not firing IOS

寵の児 提交于 2020-01-15 07:37:08
问题 Trying to authenticate users on my ionic application through an external service and I need to use cordovas In app browser! The code works perfectly on android however on iOS the "loadstop" event never fires and thus, the browser never redirects itself back to the application. The code I have looks like this: $rootScope.$on('$cordovaInAppBrowser:loadstop', function (e, event) { console.log('inappbrowser loaded', event); var regex = /* regex to determine if url is correct redirected url */ var

How to imlement print on Android using Cordova?

戏子无情 提交于 2020-01-15 06:38:27
问题 I want to implement print functionality in Android app, I'm using AngularJS. I have tried the below code, but it works only on browser, it doesn't work on Android. AngularJS: $scope.print = function (divName) { var w = window.open(); w.document.write($('#' + divName).html()); w.print(); w.close(); } Html: <img ng-click="print('print');" class="card-img-top image-responsive" src="./plugins/images/print.png" alt="Card image cap"> <div id="print" style="display:none;"> <style> @page { size: auto

Run application in background Cordova

你。 提交于 2020-01-15 06:19:08
问题 I'm developing a Cordova application that sends data (registration and image) for external server, it is already working but would like to make it if the user has no internet at registration, the application is running in background waiting for internet connection to send data, how to do this? 回答1: Use this plugin cordova plugin add cordova-plugin-network-information and cal your code in this callback function document.addEventListener("online", onOnline, false); function onOnline() { //

showkeyboard/hidekeyboard events not firing on ios 7 when opening the Soft Keyboard in phonegap

时光怂恿深爱的人放手 提交于 2020-01-15 05:28:06
问题 I have a very simple bit of code just to try and throw up an alert when the soft keyboard is open. I'm just trying to establish that this a viable method for showing the keyboard is open. document.addEventListener('deviceready', function () { $.app.deviceReady(); document.addEventListener("showkeyboard", function(){ alert("Keyboard is ON");}, false); document.addEventListener("hidekeyboard", function(){ alert("Keyboard is OFF");}, false); }, false); These events never get triggered on IOS.

Convert android app to IOS using phonegap?

夙愿已清 提交于 2020-01-15 03:39:26
问题 I developed an android application with Phonegap and I want to convert it to iOS as well. Before starting my project I heard that we are able to convert same project with multiple platforms using phone gap. But now I don't know how to convert my project to IOS. Can any one suggest good tutorial OR examples to do it. And also mention what are all prerequisites to convert my android application to IOS using phone gap. Suggest me some tutorials with examples. 回答1: With phongap you can target all

PhoneGap: BarcodeScanner Sharing Plugin

左心房为你撑大大i 提交于 2020-01-15 02:45:08
问题 Note: I wanted to develop IOS and Android application with QR code scanning feature. I do not own Mac machine, I'm using Netbean / Eclipse in WIndows OS. Question: Is it possible to have single codebase written with Eclipse Windows OS + android BarcodeScanner Plugin, and get built into IOS application via Adobe Cloud Build service Deeply appreciated if someone could give me an advice. 回答1: If you're using the online compiler of phonegap (Phonegap Build) then it's possible to use a plugin for