1.4.0 • Published 3 years ago

@cordova-plugin-agconnect/apm v1.4.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
3 years ago

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.

SoftwareAllowed Version RangeDescription
cordova9.0.0 or laterPlatform
cordova-android>=8.1.0 or laterPlatform
cordova-ios5.0.0 or laterPlatform
npm6.4.1 or laterTool

5. FAQs

-

License

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