cordova-plugins

Phonegap Plugins work on CLI?

江枫思渺然 提交于 2019-12-13 00:11:45
问题 Does the Phonegap Plugins work on CLI or only on the phonegap online build? If yes, please tell me how to properly integrate the splashscreen plugin on phonegap 3.3. Thank you! 回答1: From Cordova 3.3 the right call is as follows: cordova plugin add org.apache.cordova.splashscreen Keep in mind to use cordova cli not phonegap, phonegap uses cordova but its focus is on the phonegap build, however it still allows you to do local stuff without the build. 回答2: Yes, plugins work locally, not just in

Adding a plugin prevents IOS cordova app from Rotation

倖福魔咒の 提交于 2019-12-12 22:32:28
问题 I have IOS cordova application. When I add a this Pugin in my app everything works fine except the application does not rotate in both Iphone and Ipad. Something strange. I am unable to figure out the cause. Need some help. My environment info: Cordova CLI: 6.3.1 Node Version: v6.4.0 Android version: 3.7.0 Below is list of Plugins installed in my App, at.modalog.cordova.plugin.html2pdf 1.0.0 "Html2pdf" cordova-plugin-console 1.0.1-dev "Console" de.appplant.cordova.plugin.printer 0.7.1-dev

Why tel:* links don't work on ios?

老子叫甜甜 提交于 2019-12-12 20:41:15
问题 I added this to config.xml <access origin="*"/> <access origin="tel:*" launch-external="yes"/> <access origin="mailto:*" launch-external="yes"/> <allow-intent href="*"/> <allow-navigation href="*"/> <allow-navigation href="tel:*"/> <allow-navigation href="mailto:*"/> <allow-navigation href="data:*"/> <plugin name="cordova-plugin-whitelist" version="1" /> And this to index.html: <meta http-equiv="Content-Security-Policy" content="default-src *; style-src 'self' 'unsafe-inline'; script-src

Getting plugin functions on Typescript

倖福魔咒の 提交于 2019-12-12 20:22:44
问题 I am trying to use some cordova plugins functions on a typescript file but i can't build the file. Imagine that I want to access the device platform and model. Can someone help me with this? Should I create interfaces for every function on js files of the plugin? Thanks in advance! 回答1: There are already definitions for that : https://github.com/borisyankov/DefinitelyTyped/blob/master/cordova/plugins/Device.d.ts interface Device { /** Get the version of Cordova running on the device. */

How to Convert Cordova Image Picker Results to Base64 format?

旧时模样 提交于 2019-12-12 20:06:19
问题 Hi I want to know how to Convert the Image Picker Results to Base64 , While Getting the image through Cordova Camera I can get base64 format data but in cordova image picker it does not working I have Seen the below link and applied its Working for Cordova Camera Image Capture but not working for cordova image picker http://stackoverflow.com/questions/29456897/cordova-image-picker-convert-to-base64 Not Working for cordova image Picker $scope.Pick=function(){ var options = { quality: 50,

Access Cordova plugins directly from ionic2 typescript components

心已入冬 提交于 2019-12-12 17:51:37
问题 I am creating new Ionic2 typescript application. Few of the required native access plugins are not available in ionic native till now(Routed device check plugin, Read SMS plugins etc). So i required to use cordova plugins directly with out intervention of ionic native class and injection formalities. your suggestions are appreciable. thanks 回答1: There is absolutely nothing to stop you from using these plugins. Just tell typescript that they exist like so: declare var rootdetection:any; If you

Cordova build android only displays paths and does not build the project itself

我是研究僧i 提交于 2019-12-12 17:15:29
问题 I am trying to build a Cordova app with few plugins (InAppBrowser, Barcode Scanner, File Transfer, Text-to-Speech, Document Viewer, GeoLocation). When I run cordova build android it only shows the ANDROID_HOME and JAVA_HOME paths but does not build the Android Studio project. I am using Cordova version 8.0.0 and Android cordova-android@~7.0.0 Building in the verbose mode gives the following messages 来源: https://stackoverflow.com/questions/48075005/cordova-build-android-only-displays-paths-and

Phonegap FileTransfer error code returns null

ε祈祈猫儿з 提交于 2019-12-12 14:23:11
问题 I've been implementing upload picture functionality in Phonegap. My server side code is already ready. Ive installed plugins File and FileTransfer but when i try to upload a picture to my server, the code always fail and will always go to fail() function. I cannot determine whats the error since error.code, error.source, error.target is always null. Why am i getting null on error.code? I cannot determine whats wrong here so i really need your help. This is my code : var pictureSource =

Cordova App 'Android permission Cordova plugin' is not showing permission dialog

人走茶凉 提交于 2019-12-12 12:05:11
问题 i am attending to use 'imagepicker' plugin for my cordova app to get images from the mobile gallery and use them . i am testing my app on android 6.0 device and this is the problem, marshmallow Android 6.0 require in run-time permission not like the older versions "it is working on older versions" ,but on api 23 or higher when it attend to open gallery it close immediately and the app crashes . when i searched i found that i need permission to do it . so i started to use "Android permission

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