cordova-plugins

Unable to set image source when accessing image from gallery-Android

我与影子孤独终老i 提交于 2019-11-30 19:32:45
问题 Iam using cordova 3.4. When i capture an image and set it,its working fine but when I try to access on image from gallery I get the url content://com.android.providers.media.documents/document/image%4A463 and I get image load error in my image tag.I know this is a know bug going around and I have refered stack questions such as Unable to load image when selected from the gallery on Android 4.4 (KitKat) using PhoneGap Camera Plugin I cannot use the rough work around mentioned where URI is set

Cordova plugin development in C# for Windows 8.1 / Windows 10

三世轮回 提交于 2019-11-30 17:06:16
问题 Is it possible to write a Cordova plugin for Windows (8.1/10) in C#? Alternatively, can a library component written in C# be wrapped as a Cordova plugin? If I haven't missed anything, MSDN and Apache documentation only show how to use C# for Windows Phone 8 (a JS implementation is expected for "Windows Universal") 回答1: Yes but there are some requirements. First, your library must be a Windows Runtime Component project. You can reference a winmd or a csproj in your plugin (see https://cordova

Ionic 3 error install native plugin after Ionic 4 release

不羁的心 提交于 2019-11-30 16:05:44
I get a problem using native plugin ionic 3 when install Native Store is success, but when I try to add in app module, the text editor show a red line and when I try to run I found an error like below. Here I install Native-store ( https://ionicframework.com/docs/v3/native/native-storage/ ) Red line in text editor, successful install but when add in app module show red line. This is error in console when run 'ionic cordova run android'. [14:40:05] ionic-app-scripts 3.1.8 [14:40:05] build dev started ... [14:40:05] clean started ... [14:40:05] clean finished in 71 ms [14:40:05] copy started ...

FCMPlugin build fail due to version conflict with google gms services

僤鯓⒐⒋嵵緔 提交于 2019-11-30 15:52:57
问题 I'm using this with ionic 2 on Windows for Android. When I add cordova-plugin-fcm plugin, I cannot build the project anymore. Here is the error that I'm getting: BUILD FAILED Total time: 4.697 secs Error: cmd: Command failed with exit code 1 Error output: FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':processDebugGoogleServices'. > Please fix the version conflict either by updating the version of the google-services plugin (i nformation about the

Redirect to location settings using cordova in android

只谈情不闲聊 提交于 2019-11-30 15:45:34
问题 Here is the requirements what i am trying to implement in my cordova android application When user enters the home page check to see if the gps is enabled or not. If not enabled i want to point the user to turn on the location settings. first part is made easily with GPS detector plugin and second part is implemented using the web intent plugin.But its not working as i expected. if(!gps){ //gps is disabled try to show the location setting using webintent plugin window.plugins.webintent

FCMPlugin build fail due to version conflict with google gms services

安稳与你 提交于 2019-11-30 15:36:43
I'm using this with ionic 2 on Windows for Android. When I add cordova-plugin-fcm plugin, I cannot build the project anymore. Here is the error that I'm getting: BUILD FAILED Total time: 4.697 secs Error: cmd: Command failed with exit code 1 Error output: FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':processDebugGoogleServices'. > Please fix the version conflict either by updating the version of the google-services plugin (i nformation about the latest version is available at https://bintray.com/android/android-tools/com .google.gms.google-services/)

Redirect to location settings using cordova in android

人盡茶涼 提交于 2019-11-30 14:46:24
Here is the requirements what i am trying to implement in my cordova android application When user enters the home page check to see if the gps is enabled or not. If not enabled i want to point the user to turn on the location settings. first part is made easily with GPS detector plugin and second part is implemented using the web intent plugin.But its not working as i expected. if(!gps){ //gps is disabled try to show the location setting using webintent plugin window.plugins.webintent.startActivity( { action: window.plugins.webintent.ACTION_LOCATION_SOURCE_SETTINGS, }, function() {}, function

Invoke native file browser using phonegap

时间秒杀一切 提交于 2019-11-30 13:40:17
I have to implement file upload feature in my phonegap project. User should be able to upload any type of file from the phone memory or sd card. The application screens I designed using jQuery Mobile framework. I tried input type="file", but it is not supported in android 4.4. I tried phonegap camera API too, but it is supported only media files. I found some cordova plugins ( exm1 , exm2 ). But these plugins using custom UI. I want to invoke native file browser for choosing the file & it has to work in both Android & iPhone platforms. Is there a way to implement the same? I found cordova file

Ionic: Check Internet Connection using Cordova

删除回忆录丶 提交于 2019-11-30 12:50:42
问题 I am working on Ionic Framework, and facing issues using the Apache Cordova Network API to detect internet connection in Android App. I have referred this tutorial and also created a demo project, which works fine. I have followed the below steps. [from the tutorial] ionic start testApp sidemenu ionic platform add android Open testApp/www/js/app.js Copy paste this code if(window.Connection) { if(navigator.connection.type == Connection.NONE) { alert('There is no internet connection available')

What is the purpose of fetch.json file inside cordova plugins folder?

拥有回忆 提交于 2019-11-30 11:22:33
File fetch.json created inside plugins folder after cordova plugin add executed first time. This file also modified each time I add/remove plugins. What purpose of this file exactly? What tools use this file, when and why? Is there a way to restore plugins using fetch.json (try not to place plugins into repositiory)? Where can I find some docs about content of this file? Content of fetch.json: { "com.phonegap.plugins.PushPlugin": { "source": { "type": "git", "url": "https://github.com/phonegap-build/PushPlugin.git", "subdir": "." }, "is_top_level": true, "variables": {} }, "cordova-plugin-file