/cordova-plugin-firebase-performance

Cordova plugin for Firebase Performance Monitoring

Primary LanguageJavaMIT LicenseMIT

cordova-plugin-firebase-performance
NPM version NPM downloads

Cordova plugin for Firebase Performance Monitoring

Installation

cordova plugin add cordova-plugin-firebase-performance --save

Supported Platforms

  • iOS
  • Android

Methods

Every method returns a promise that fulfills when a call was successful.

startTrace(traceName)

Start a custom trace.

window.FirebasePerformance.startTrace("my_trace");

incrementMetric(traceName, metricName)

Increment a custom metric.

window.FirebasePerformance.incrementMetric("my_trace", "my_metric_1");

stopTrace(traceName)

Stop the custom trace.

window.FirebasePerformance.stopTrace("my_trace");