Cordova series simplifies complexity: creating Cordova components suitable for all scenarios

Foreword In the opening chapter of my previous article A Preliminary Study of Cordova, I mentioned that one of the significant limitations of Cordova in Android application development is that our Activity must inherit the CordovaActivity provided by it. This design is particularly restrictive for projects that pursue personalized UI design. In fact, it is […]

Upgrade from node 6.9.1 to node 8.16.2+ ionic 3.19.0 + cordova7.1.0 environment configuration

node 8.16.2 + ionic 3.19.0 + cordova7.1.0 environment configuration background implement (1) Install ionic (2) Install cordova (3) Run the project ionic serve 1. Follow the prompts to reconstruct node-sass for node 8. 2. An error occurs 3. Follow the prompts to install vcbuild: run as administrator and open the command line tool. Run in […]

Cordova plug-in development 2: high-precision positioning satellite data analysis

Article directory 1. Final effect preview 2. Coordinate acquisition method 3. Encapsulate the general method of obtaining coordinates in a public class 4. Encapsulate the startGeoLocation method in plug-in js 5. How to encapsulate the main interface of the plug-in 1. Final effect preview 2. Coordinate acquisition method let obj = Object.assign({}, this.mapConfig.mapLocationObj) obj.isKeepCallBack = […]

Use ionic + cordova + vue3 to select albums, take pictures, upload and preview pictures

Table of Contents 1. Upload component upload.vue 1.1 Template planning 1.2 Click the Add button 1.2.1 Implement inquiry pop-up box 1.2.2 Realize taking pictures 1.2.3 Implement album selection 1.2.4 Implement file upload 1.2.5 Verify image type and upload 1.2.6 Get image list 1.2.7 Add image attachments within the component 2. Image enlargement component enlarge-image.vue 2.1 […]

APP-App (using ionic+cordova) created

Article directory my-app Introduction create new project add platform Add necessary plugins Steps for usage plug-in Common commands configuration report error Packaging appears ANDROID_SDK_ROOT=undefined (recommended setting) No usable Android build tools found. Highest 30.x installed version is 30.0.0-preview; Recommended version is 30.0.3 Parsing error: Cannot read file ‘d:\studyspace\app\tsconfig.json’. UnhandledPromiseRejectionWarning: Error: The target entry-point “@ionic-native/nfc” has […]

The use of Cordova series plug-ins and custom plug-ins

Foreword Cordova was introduced in the previous blog Exploring Cordova, and a Cordova project was created and run. The article also mentioned that plug-ins are the core of Cordova. This blog mainly develops Take a look at how to use the plugin and how to customize it Use of Cordova plugin First of all, the […]

[Solved] cordova installation error Command failed: powershell solution

cordova installation error Command failed: powershell solution Exception information F:\sdk\\ odejs\X64\\ pm\\ ode_global\\ ode_modules\cordova\\ ode_modules\windows-rele ase\\ ode_modules\execa\index.js:347 throw err; ^ Error: Command failed: powershell (Get-CimInstance -ClassName Win32_OperatingSys tem).caption Problem description After installing cordova globally, running cordova -v prompts a script error Analyze the reasons Lack of Wbem, cordova relies on Wbem to judge the system […]