cordova-plugins

ActivityNotFoundException when attempting to launch Intent in Cordova

ぃ、小莉子 提交于 2019-12-02 10:51:19
问题 How do I create an activity/intent in the android manifest to fix the error below... I am using https://github.com/MaginSoft/MFileChooser and I can see the picker and the file in the browser but I get 'android.content.ActivityNotFoundException' error W/No activity found to handle file chooser intent.: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.GET_CONTENT cat= android.intent.category.OPENABLE] typ=.doc,.docx,.rdf,.txt,.pdf,.odt }

Ionic 3 get base64 audio string from recorded file

不想你离开。 提交于 2019-12-02 10:44:16
I am using cordova-plugin-media to record voice(with pause and resume features) in my ionic app for android. After I record it I need to get base64 string in order to play it using html audio tag. And the problem is: if I am trying to save recording which was paused and resumed as 3gp file('voice.3gp'), then when I use readAsDataURL method of cordova-plugin-file , I don't receive anything(the callback simply not called). If I am trying to save it as mp3 or wav file, then I receive only 1st part of the recording(before pause). I suppose that the proper audio file extension should be 3gp as this

How to debug the SqlLite database used in Ionic?

廉价感情. 提交于 2019-12-02 09:01:37
问题 I was searching for some trick to debug the database of an Android app in Ionic on a phone and I've encountered this project. How can I use this with Ionic? If there is no way, can I use others tools? 回答1: If you are executing on a device and need to view the data stored by sqlite, install the "stetho" plugin, it lets you open a dev tool with sqlite data. connect the device on the computer, open the app, open the chrome and type in the navigation bar "chrome://inspect", and click the link

navigator.geolocation.getCurrentPosition() when screen is locked

非 Y 不嫁゛ 提交于 2019-12-02 06:17:36
问题 I have an App which constantly polls for location when its in travelling mode. My issue is that once the screen is locked, the App can no longer access the geolocation from the phone. I have managed to find this plugin but it requires I purchase it for the capability to work in Android. http://shop.transistorsoft.com/pages/cordova-background-geolocation-premium Does anyone know if there is a free option that i can use to get location to successfully poll in an Ionic / Cordova application

PhoneGap Android Plugin - close the plugin Activity

泪湿孤枕 提交于 2019-12-02 04:51:34
问题 I have written a PhoneGap Android Plugin and there I open a second activity: cordova.getActivity().runOnUiThread(new Runnable() { @Override public void run() { Context context = cordova.getActivity().getApplicationContext(); Intent intent = new Intent(context, secondActivity.class); cordova.getActivity().startActivity(intent); } }); Now I'd like to close the activity with a button and send the Plugin Result to JavaScript, but Im not able to close the activity and go back to the PhoneGap

ActivityNotFoundException when attempting to launch Intent in Cordova

◇◆丶佛笑我妖孽 提交于 2019-12-02 03:59:39
How do I create an activity/intent in the android manifest to fix the error below... I am using https://github.com/MaginSoft/MFileChooser and I can see the picker and the file in the browser but I get 'android.content.ActivityNotFoundException' error W/No activity found to handle file chooser intent.: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.GET_CONTENT cat= android.intent.category.OPENABLE] typ=.doc,.docx,.rdf,.txt,.pdf,.odt } here is the java code from the plugin.. public void chooseFile(CallbackContext callbackContext) { //

Cordova: CSP issue on Android when requesting data over HTTPS

狂风中的少年 提交于 2019-12-02 03:09:14
Cordova Android is an Android application library that allows for Cordova-based projects to be built for the Android Platform. Cordova based applications are, at the core, applications written with web technology: HTML, CSS and JavaScript. Apache Cordova is a project of The Apache Software Foundation (ASF). I have developed an app with Cordova which works as expected on iOS, and on Android when the signed app gets deployed from Android Studio direct to a Samsung S6. However, when downloading the app from Google Play it does not get requested data from a HTTPS request. Here are the whitelist

PhoneGap Android Plugin - close the plugin Activity

≯℡__Kan透↙ 提交于 2019-12-02 00:16:51
I have written a PhoneGap Android Plugin and there I open a second activity: cordova.getActivity().runOnUiThread(new Runnable() { @Override public void run() { Context context = cordova.getActivity().getApplicationContext(); Intent intent = new Intent(context, secondActivity.class); cordova.getActivity().startActivity(intent); } }); Now I'd like to close the activity with a button and send the Plugin Result to JavaScript, but Im not able to close the activity and go back to the PhoneGap Application - how can I do this? I hope somebody can help me. Thanks for all answers. In your plugin, use

navigator.geolocation.getCurrentPosition() when screen is locked

坚强是说给别人听的谎言 提交于 2019-12-02 00:15:51
I have an App which constantly polls for location when its in travelling mode. My issue is that once the screen is locked, the App can no longer access the geolocation from the phone. I have managed to find this plugin but it requires I purchase it for the capability to work in Android. http://shop.transistorsoft.com/pages/cordova-background-geolocation-premium Does anyone know if there is a free option that i can use to get location to successfully poll in an Ionic / Cordova application while the screen is locked? DaveAlden Another option is to use a partial wakelock on Android to keep your

How to prevent Cordova build command from auto-generating settings.gradle

女生的网名这么多〃 提交于 2019-12-01 22:38:59
问题 I have created a Cordova App with a custom settings.gradle as folows: // GENERATED FILE - DO NOT EDIT include ":" include ":CordovaLib" include 'manager' project(':manager').projectDir = new File('libs/ConnectManager') and in build.gradle, I can refer to it as: dependencies { compile fileTree(dir: 'libs', include: '*.jar') // SUB-PROJECT DEPENDENCIES START debugCompile project(path: "CordovaLib", configuration: "debug") releaseCompile project(path: "CordovaLib", configuration: "release") //