ionic-framework

Using a Cordova plugin with Capacitor

丶灬走出姿态 提交于 2020-12-29 09:27:06
问题 I've been working through this example: https://capacitor.ionicframework.com/docs/basics/cordova I've run: npm install cordova-plugin-qrscanner npx cap sync and I can see the plugin installed in my node_modules. What I do not know how to do is call one of the functions on the cordova-plugin. I'm wondering if I need a packager like webpack? I'm also confused as to how this works if the cordova plugin contains native swift (or other) code. 回答1: Remember you can install the native wrapper too.

Joining multiple audio files into a single audio file in client side

独自空忆成欢 提交于 2020-12-26 03:20:02
问题 We are building a exercise app using ionic framework, which need to play multiple audio files in sequence with specific interval between each audio file. We got this working. Now we need to join the audio files into a single file. Example: File_1 (4 mins in length), File_2 (3 mins in length). We need a new combined single audio file which should be of 10 mins length (File_1 + 3 mins silence + File_2) Is there way to get this in a client side mobile application using angular or cordova? 回答1:

getting net::ERR_CONNECTION_REFUSED (http://localhost:8080) on android 4.4.2 version

此生再无相见时 提交于 2020-12-25 03:58:36
问题 I build a simple ionic project from this tutorial. It runs on Xiaomi Mix 2 phone (android version 8.0.0) and on browser without any problem. But when I deployed to the samsung note 2 (android version 4.4.2), it gives an application error with this message: net::ERR_CONNECTION_REFUSED (http://localhost:8080) Why am I getting this error? Any advice and suggestions will be appreciated. Kemal. 回答1: Your problem is caused by the cordova-plugin-ionic-webview plugin that is part of every new or

getting net::ERR_CONNECTION_REFUSED (http://localhost:8080) on android 4.4.2 version

倖福魔咒の 提交于 2020-12-25 03:58:05
问题 I build a simple ionic project from this tutorial. It runs on Xiaomi Mix 2 phone (android version 8.0.0) and on browser without any problem. But when I deployed to the samsung note 2 (android version 4.4.2), it gives an application error with this message: net::ERR_CONNECTION_REFUSED (http://localhost:8080) Why am I getting this error? Any advice and suggestions will be appreciated. Kemal. 回答1: Your problem is caused by the cordova-plugin-ionic-webview plugin that is part of every new or

cordova ios WKWebView upgrade - errors when showing some images

喜欢而已 提交于 2020-12-15 07:09:45
问题 I'm working on an app with Ionic 1 and AngularJS 1.5 I was told that I need to upgrade my ios to use WKWebView instead of UIWebView: https://ionicframework.com/blog/understanding-itms-90809-uiwebview-api-deprecation/?utm_campaign=enterprise&utm_source=hs_email&utm_medium=email&utm_content=85128961&_hsenc=p2ANqtz--vsf3kcg7MssMWwjv2_GpHmVbzN23_5fXDfKT0E6OileYraLWs9btGPqWUcq5mzTKCtKwXGqO35V3SnInjypj4uqSBRg&_hsmi=85128961 Here is my setup: cordova-android 8.1.0 cordova-ios 5.1.0 cordova-plugin

cordova ios WKWebView upgrade - errors when showing some images

雨燕双飞 提交于 2020-12-15 07:09:20
问题 I'm working on an app with Ionic 1 and AngularJS 1.5 I was told that I need to upgrade my ios to use WKWebView instead of UIWebView: https://ionicframework.com/blog/understanding-itms-90809-uiwebview-api-deprecation/?utm_campaign=enterprise&utm_source=hs_email&utm_medium=email&utm_content=85128961&_hsenc=p2ANqtz--vsf3kcg7MssMWwjv2_GpHmVbzN23_5fXDfKT0E6OileYraLWs9btGPqWUcq5mzTKCtKwXGqO35V3SnInjypj4uqSBRg&_hsmi=85128961 Here is my setup: cordova-android 8.1.0 cordova-ios 5.1.0 cordova-plugin

How to convert Camera Image to blob in ionic 5?

别等时光非礼了梦想. 提交于 2020-12-15 07:01:20
问题 I want to post multipart form data, for this, we can do like this: let formData = new FormData() formData.append('myfile', 'your blob') this.http.post(url, formData) But I don't know how to convert a camera image to the blob. I am using native camera plugin and here my code: cameraOptions: CameraOptions = { quality: 20, destinationType: this.camera.DestinationType.DATA_URL, encodingType: this.camera.EncodingType.JPEG, mediaType: this.camera.MediaType.PICTURE, sourceType: this.camera

NFC Write and read tags between Android & iOs

这一生的挚爱 提交于 2020-12-15 06:39:04
问题 Need to have some information about NFC reading and writing tags, with phonegap in IONIC I would like to make an app with shared data between 2 mobiles, I want to know if it's possible to read and write it between two phones using a different OS like Android and iOs. Do you know if it's possible or if it will have any limitation with this use? 回答1: Without having a real NFC Card to acts as intermediary between devices, due to lacking NFC support in iOS iOS <=> iOS is impossible iOS <=>

NFC Write and read tags between Android & iOs

≯℡__Kan透↙ 提交于 2020-12-15 06:37:21
问题 Need to have some information about NFC reading and writing tags, with phonegap in IONIC I would like to make an app with shared data between 2 mobiles, I want to know if it's possible to read and write it between two phones using a different OS like Android and iOs. Do you know if it's possible or if it will have any limitation with this use? 回答1: Without having a real NFC Card to acts as intermediary between devices, due to lacking NFC support in iOS iOS <=> iOS is impossible iOS <=>

Ionic Capacitor cordova plugin unable to write image to library on Android

回眸只為那壹抹淺笑 提交于 2020-12-15 05:35:32
问题 I am trying to use cordova-plugin-document-scanner with Ionic Capacitor for Android, but after the image is captured and when image crop UI should be displayed, it just returns to the capture screen again. This is the issue on the github repo. This is what seems relevant in the logcat console: 2020-08-03 13:26:05.320 27707-27707/si.test.app D/ViewRootImpl@9f2e8cd[ScanActivity]: Relayout returned: old=(0,0,1080,2280) new=(0,0,1080,2280) req=(1080,2280)4 dur=8 res=0x1 s={false 0} ch=false 2020