phonegap-cli

cordova: media.getDuration returns -1

放肆的年华 提交于 2020-06-16 04:24:11
问题 I am using Media.getDuration() function to get duration of an audio file but I am always getting -1 as response. This works fine if I build using build.phonegap.com But whenever I build using cli I then getDuration does not work. Following are simple steps to reproduce this issue: CLI: cordova start my_project cordova plugin add cordova-plugin-media cordova platform add android cordova build android www/index.html <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4

how to use cordova plugins with phonegap cli

不羁岁月 提交于 2020-01-15 10:29:27
问题 I am new to phonegap and want to install try install a plugin. There are many websites explaining to use command cordova plugin add <plugin name> .When I type this its shows cordova is not recognized as command . This may be because I have installed Phonegap cli through npm install -g phonegap . So now whenever I try to add a cordova plugin its showing not a command. Is that I can use only plugins made specifically for phonegap. I know that in phonegap build I only need to add a line in

Cordova build For Windows

馋奶兔 提交于 2020-01-07 08:02:34
问题 I am successfully able to build for android, now I want to build apps for windows. What is the process of setting up the build environment for windows? I do not want to work with Visual Studio, can I install windows SDK as a stand alone and work with it using the command line? If I take a look at the Docs here it does not go into any detail https://github.com/apache/cordova-windows The same is mentioned here as well https://cordova.apache.org/docs/en/latest/guide/platforms/win8/index.html If

Phonegap / Cordova - Build Apk

我们两清 提交于 2019-12-31 03:18:08
问题 Does anyone know how to generate the apk? I'm trying to build the apk of my application with Phonegap / Cordova CLI. I need some tutorials or information about it. 回答1: To check whether or not you have everything installed that is required to build an APK first run this command: $ cordova requirements This should give something similar to the following result: Requirements check results for android: Java JDK: installed . Android SDK: installed Android target: installed android-19,android-21

android emulator doesn't display app

拥有回忆 提交于 2019-12-23 02:22:18
问题 I installed phonegap cli and and android sdk cli. I tried to create a new project with default parameter : phonegap create -n-name "mypoc" --id "com.cavissima.poc" --template hello-world after what i added android platform for testing : phonegap platform add android And finally i tried to launch it on android emulator : phonegap run android --verbose in the command line i see a lot of loop on this action: Running command "getprop emu.uuid" on emulator-5554... when finaly the android emulated

PhoneGap - navigator.app.exitApp() Not Working

核能气质少年 提交于 2019-12-19 19:58:08
问题 I'm using Phonegap to make a small application but the navigator.app.exitApp()? isn't working at all. This is my first hybrid app. My target platform is Android 5 I'm developing on Windows with Cordova CLI. I call a JavaScript function with this <input type='button' onclick='exitApp();'/> JavaScript: function exitApp() { navigator.app.exitApp(); } Ideas?? 回答1: it used to be that calling navigator.app.exitApp() had just a few stumbling blocks, but now both Google and Apple have thrown in major

ionic mobile app gives white screen

非 Y 不嫁゛ 提交于 2019-12-13 01:24:47
问题 I have created one ionic app it runs perfectly fine in browser but when I convert it into app it gives white screen. I have already install white list plugin and allowed all url in config and also have kept meta tag. Am not able to find any other solution. When kept simple html file am able to view it. Any help will be grateful.May be good way to debug will be also good. 回答1: Connect your phone to PC with USB cable and remember to keep USB Debugging On. Now, navigate to chrome://inspect. You

Cordova plugins manual installation

泄露秘密 提交于 2019-12-12 11:52:30
问题 i tried to install this plugin on my Phonegap app, but the object window.tlantic.plugins.socket seems not to be istantiated. I think it's because when i try to install that plugin with cordova plugin add com.tlantic.plugins.socket it can't find it, so i have to use the entire url cordova plugin add https://github.com/Tlantic/cdv-socket-plugin/ and the installation works but not the plugin. If i build it from build.phonegap.com it returns Error - The following plugin, plugin version or a

PhoneGap doesn't want to use REST service no matter what I do

旧巷老猫 提交于 2019-12-12 01:04:51
问题 I have a PhoneGap app that I am using AngularJS with. I'm using a pretty simple $http call to my Node backend: $http.get("http://localhost:6969/random") .then(function(response) { $scope.images = response.data; }); No matter what, PhoneGap never hits the backend. I have tested it in a normal browser and it works as expected. I have obviously read a bunch about it and most people fix it using whitelisting, but in my config.xml , my whitelisting is about as open as can be: <plugin name="cordova

Phonegap Build , App icon does not apear

无人久伴 提交于 2019-12-07 23:44:24
问题 I am updating my currently app. Having problems with getting my app icon to show in notification using the Local Notification plugin. https://github.com/katzer/cordova-plugin-local-notifications/ I have my notification setup as: window.plugin.notification.local.schedule({ id: id, ongoing: true, autoCancel: false, autoClear: false, title: "Now Playing:", text: title, icon: "res://icon.png", smallIcon: "res://icon.png", }); I have an icon.png file in the following locations: /www /www/img /www