@cordova-plugin-agconnect/apm

Cordova AGC APM Plugin

Usage no npm install needed!

<script type="module">
  import cordovaPluginAgconnectApm from 'https://cdn.skypack.dev/@cordova-plugin-agconnect/apm';
</script>

README

AppGallery Connect APM for Cordova

Introduction

App Performance Management (APM) of HUAWEI AppGallery Connect provides minute-level app performance monitoring capabilities. You can view and analyze app performance data collected by APM to comprehensively understand online performance of apps in real time, helping you quickly and accurately rectify app performance problems and continuously improve user experience. Learn More

Installing the Plug-in

Install AGC APM plugin to the project

Cordova

$ cordova plugin add @cordova-plugin-agconnect/apm --variable APMS_DEBUG_LOG_ENABLED="true" --variable SESSIONS_SAMPLING_PERCENTAGE="1.0" --variable COLLECT_CPU_FREQUENCY_FG_MS="100" --variable COLLECT_MEMORY_FREQUENCY_FG_MS="100" --save

For more details, please refer to Getting Started with Cordova

Ionic

$ ionic cordova plugin add @cordova-plugin-agconnect/apm --variable APMS_DEBUG_LOG_ENABLED="true" --variable SESSIONS_SAMPLING_PERCENTAGE="1.0" --variable COLLECT_CPU_FREQUENCY_FG_MS="100" --variable COLLECT_MEMORY_FREQUENCY_FG_MS="100" --save

Install Ionic-Native AGC APM to the project.

$ npm install @ionic-native/core @cordova-plugin-agconnect/ionic-native-agc-apm

For more details, please refer to Getting Started with Ionic

Development Guide

Android App Development

  1. Open MainActivity.java class in your Cordova-Android project.
  2. Fields marked with red should be written in your MainActivity.java class.

Development Environment

You are advised to use the plug-ins in an environment that meets the following requirements.

Software Allowed Version Range Description
cordova 9.0.0 or later Platform
cordova-android >=8.1.0 or later Platform
cordova-ios 5.0.0 or later Platform
npm 6.4.1 or later Tool

5. FAQs

License

APM Plug-in is licensed under the: Apache License, version 2.0.