cordova-plugins

How get data from cordova-plugin-nativestorage in android java

杀马特。学长 韩版系。学妹 提交于 2020-01-11 08:52:07
问题 Good day, I making native background mod for Cordova and I need get data from js to java. I save data in js with plugin cordova-plugin-nativestorage, with this code: <!DOCTYPE html> <html> <head> <title>Save data</title> <script type="text/javascript" charset="utf-8" src="cordova.js"></script> <script type="text/javascript" charset="utf-8"> function onLoad() { document.addEventListener("deviceready", onDeviceReady, false); } function onDeviceReady() { NativeStorage.setItem("somekey", "value",

cordova-plugin-camera: Permission Denial: reading com.android.providers.media.MediaDocumentsProvider requires android.permission.MANAGE_DOCUMENTS

浪尽此生 提交于 2020-01-07 09:03:09
问题 I have an ionic mobile app and in my app, I want to be able to select images from gallery but I get this error after selecting the image java.lang.SecurityException: Permission Denial: reading com.android.providers.media.MediaDocumentsProvider uri content://com.android.providers.media.documents/document/image:58 from pid=2173, uid=10062 requires android.permission.MANAGE_DOCUMENTS, or grantUriPermission() this is my code to select image from gallery and add it var options = { destinationType

cordova-plugin-camera: Permission Denial: reading com.android.providers.media.MediaDocumentsProvider requires android.permission.MANAGE_DOCUMENTS

戏子无情 提交于 2020-01-07 09:03:02
问题 I have an ionic mobile app and in my app, I want to be able to select images from gallery but I get this error after selecting the image java.lang.SecurityException: Permission Denial: reading com.android.providers.media.MediaDocumentsProvider uri content://com.android.providers.media.documents/document/image:58 from pid=2173, uid=10062 requires android.permission.MANAGE_DOCUMENTS, or grantUriPermission() this is my code to select image from gallery and add it var options = { destinationType

Ionic 2, Date Picker (cordova plugin). Property 'ANDROID_THEMES' does not exist on type 'typeof DatePicker'

杀马特。学长 韩版系。学妹 提交于 2020-01-07 06:54:22
问题 I have installed the plugin Date Picker in my project. In a component wich has import { DataPicker } from 'ionic-native' on top, if I use it like that (with androidTheme parameter commented) it WORKS : let options = { date: new Date(), mode: 'date', // androidTheme: DatePicker.ANDROID_THEMES.THEME_HOLO_LIGHT }; DatePicker.show(options).then( (date) => { console.log('date_value:' + date) }).catch( (error) => { }); If I uncomment androidTheme:DatePicker.ANDROID_THEMES.THEME_HOLO_LIGHT , It will

Returning Data from Service to Controller with Asynchronous Callback

老子叫甜甜 提交于 2020-01-07 05:33:46
问题 I'm trying to upload image from Camera or gallery. I wrote all the code in the service. The controller must receive the complete url from the camera or gallery to show it in a slide box, but now nothing receive. Everything works, but I couldn't send back to the controller the url of the image. I think the error is because I'm trying to return the value before that the function "obtenerImagen" execute. I'm trying to implement Callbacks , but I think I did not implemented correctly. The

read uploaded vcf file from server

不想你离开。 提交于 2020-01-07 03:36:08
问题 I have uploaded vcf file successfully on server on getting help from my previous question (the one which is edited) Now I need a help in how to read that vcf file or vcard from server and display as a contact number and contact name in my phonegap app. plugin used cordova-plugin-file-transfer Can anyone help on this ? 回答1: Using plugin cordova-plugin-file-transfer https://github.com/apache/cordova-plugin-file-transfer you can download file from server. For Read vcf file, you need https:/

Is there any Ionic/Cordova plugin to read SMS without need permission of APP?

江枫思渺然 提交于 2020-01-06 05:51:29
问题 Recently, Google has changed policy for reading SMS by mobile APP. so, now they are not allowing to give the permission of READ_SMS. There is a way to read SMS in Native Android using SMS Retriever API here. but, I can't see any plugin to read SMS by APP which is developed in Ionic/Cordova. Please suggest. Thanks in advance! 回答1: You can try ionic-native-sms-retriever-plugin-master - it's hot off the presses and I haven't tried it, but this implements the SMS Retriever API in a Cordova plugin

Cordova Android app crashes on Android P due to RECEIVE_SMS permission denial

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-06 05:30:11
问题 I have a Cordova Android app which works fine on earlier versions of Android OS, but app starts to crash on Android P (9.0), and I am getting the following logs while app launches: Permission Denial: receiving Intent { act=android.provider.Telephony.SMS_RECEIVED flg=0x19000010 (has extras) } to com.example.myapp requires android.permission.RECEIVE_SMS due to sender com.android.phone My app is retrieving SMS for OTP autocomplete and i already added RECEIVE_SMS permission to config file. It

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

MobileFirst Platform 8.0 beta - breaks cordova-plugin-statusbar

只愿长相守 提交于 2020-01-06 02:38:08
问题 After adding cordova-plugin-mfp , cordova-plugin-statusbar no longer works. Steps to recreate: Create a new Cordova project with statusbar plugin: cordova create test cd test cordova platform add ios cordova plugin add --save cordova-plugin-statusbar Add the following text to config.xml: <feature name="StatusBar"> <param name="ios-package" value="CDVStatusBar" onload="true" /> </feature> <preference name="StatusBarStyle" value="default" /> Run the project and note the status bar text is black