cordova-plugins

Ionic 4 Camera/ActionSheet Object(…) is not a function

怎甘沉沦 提交于 2019-12-24 09:12:53
问题 I'm trying to use Camera Plugin in Ionic 4, and when the serve is started without errors, in the browser console appears this error: I remove the folder node_modules and reinstall it, but can't fix this. npm install With ActionSheet I have the same error. Dependencies in Package: "dependencies": { "@angular/common": "~6.1.1", "@angular/core": "^6.1.2", "@angular/forms": "~6.1.1", "@angular/http": "~6.1.1", "@angular/platform-browser": "^6.1.2", "@angular/platform-browser-dynamic": "~6.1.1", "

Cordova InAppBrowser PDF- iOS

最后都变了- 提交于 2019-12-24 08:48:31
问题 My code is working but not exactly the way I want. I'm using the plugin cordova-plugin-inappbrowser . I have an anchor tag to click and opens up a pdf . The code is as follows: $("#lnkTools").click(function(e){ //e.preventDefault(); url = 'someExternalLink.pdf'; var options = {location: 'yes', clearcache: 'no', toolbar:'no', closebuttoncaption: 'DONE?'}; $cordovaInAppBrowser.open(url, '_blank', options); } The problem I'm facing is that, the PDF doesn't open if I don't exit the app, I have to

deviceready Event not fired in an Angular hybrid app

落爺英雄遲暮 提交于 2019-12-24 08:06:21
问题 I am building an all platform Angular 6 APP that is going to be wrapped with Cordova 8.1.2 Unfortunately I cannot make the deviceready event to fire. I have two separate projects one for Angular and one for Cordova and I am able to build to build the Angular project and create an android apk with the following command: ng build --prod --base-href . --output-path ../Cordova/CordovaMobileApp/www/ & cd ../Cordova/CordovaMobileApp & cordova run android & cd ../../NxAngularMVI Now however I need

Ionic2 cordova-sqlite-storage: how to use SQLite as a service

白昼怎懂夜的黑 提交于 2019-12-24 07:39:19
问题 I am trying to use the Cordova plugin sqlite in Ionic 2 as a service. The project builds but it runs a blank page. Here is what I see in the android logcat related to that: 10-29 02:15:11.082 8010-8010/? I/chromium: [INFO:CONSOLE(5)] "EXCEPTION: No provider for t!", source: file:///android_asset/www/build/main.js (5) 10-29 02:15:11.082 8010-8010/? I/chromium: [INFO:CONSOLE(5)] "ORIGINAL STACKTRACE:", source: file:///android_asset/www/build/main.js (5) 10-29 02:15:11.082 8010-8010/? I/chromium

Phone act as beacon

余生颓废 提交于 2019-12-24 07:16:36
问题 I'm trying to make an hybrid app by which phone will act as beacon, which mean it should transmit both an iBeacon and an Eddystone. Is there any cordova plugin available if not can anyone please suggest how can I make one. 回答1: This Cordova plugin supports detection on both iOS and Android: https://github.com/petermetz/cordova-plugin-ibeacon It only supports transmission on iOS, but the underlying native Android Beacon Library it uses supports transmission: http://altbeacon.github.io/android

cannot remove Cordova plugin

白昼怎懂夜的黑 提交于 2019-12-24 06:14:30
问题 I'm using the following command to remove an unused Cordova plugin: $ cordova plugin remove cordova-plugin-facebook Uninstalling cordova-plugin-facebook from android Uninstalling cordova-plugin-facebook from its Its giving me the following error: Error: Uh oh! Path must be a string. Received undefined How do I resolve the problem or remove the plugin by hand? 回答1: I'm guessing that on the line: Uninstalling cordova-plugin-facebook from its That last word should be ios ? If so, the ios

cannot remove Cordova plugin

99封情书 提交于 2019-12-24 06:13:20
问题 I'm using the following command to remove an unused Cordova plugin: $ cordova plugin remove cordova-plugin-facebook Uninstalling cordova-plugin-facebook from android Uninstalling cordova-plugin-facebook from its Its giving me the following error: Error: Uh oh! Path must be a string. Received undefined How do I resolve the problem or remove the plugin by hand? 回答1: I'm guessing that on the line: Uninstalling cordova-plugin-facebook from its That last word should be ios ? If so, the ios

cannot remove Cordova plugin

ぐ巨炮叔叔 提交于 2019-12-24 06:13:12
问题 I'm using the following command to remove an unused Cordova plugin: $ cordova plugin remove cordova-plugin-facebook Uninstalling cordova-plugin-facebook from android Uninstalling cordova-plugin-facebook from its Its giving me the following error: Error: Uh oh! Path must be a string. Received undefined How do I resolve the problem or remove the plugin by hand? 回答1: I'm guessing that on the line: Uninstalling cordova-plugin-facebook from its That last word should be ios ? If so, the ios

Cordova File plugin readAsDataURL not returning file data

时光怂恿深爱的人放手 提交于 2019-12-24 06:08:07
问题 I am trying without success to use the readAsDataURL function of the Cordova File plugin to get a base64 version of a video file. My code looks like this: recordVideo() { return new Promise(resolve => { let options: CaptureVideoOptions = { limit: 1, duration: 2 }; MediaCapture.captureVideo(options) .then( (data: MediaFile[]) => { console.log('Media: recordVideo: cordova.file.dataDirectory = ' + cordova.file.dataDirectory + ', path = ' + data[0].fullPath.substring(1)); // Turn the video file

Cordova File plugin readAsDataURL not returning file data

旧巷老猫 提交于 2019-12-24 06:07:14
问题 I am trying without success to use the readAsDataURL function of the Cordova File plugin to get a base64 version of a video file. My code looks like this: recordVideo() { return new Promise(resolve => { let options: CaptureVideoOptions = { limit: 1, duration: 2 }; MediaCapture.captureVideo(options) .then( (data: MediaFile[]) => { console.log('Media: recordVideo: cordova.file.dataDirectory = ' + cordova.file.dataDirectory + ', path = ' + data[0].fullPath.substring(1)); // Turn the video file