Cordova plugin for Firebase Performance Monitoring
cordova plugin add cordova-plugin-firebase-performance --save
- iOS
- Android
Every method returns a promise that fulfills when a call was successful.
Start a custom trace.
window.FirebasePerformance.startTrace("my_trace");
Increment a custom metric.
window.FirebasePerformance.incrementMetric("my_trace", "my_metric_1");
Stop the custom trace.
window.FirebasePerformance.stopTrace("my_trace");