1.0.0 • Published 4 years ago

lotto-nz-newrelic-interfaces-plugin v1.0.0

Weekly downloads
-
License
-
Repository
-
Last release
4 years ago

Lotto-nz LottoNewRelic cordova ios plugin addon

Provides javascript interface in order to call New Relic SDK on both IOS & Android

Installation

cordova plugin add

Prerequisites

  1. New Relic plugin for Cordova

Usages

if(window.LottoNewRelic) {
 // all params are String-typed to avoid conflicts between JS and ObjectiveC/JAVA
  window.LottoNewRelic.noticeNetworkRequestForIOS(
  					requestUrl,
  					method,
  					`${timeElapsedInMilliseconds}`,
  					JSON.stringify(response.headers),
  					`${response.status}`,
  					`${bytesSent}`,
  					`${bytesReceived}`,
  					JSON.stringify(response.data),
  					()=>{/* success callback */ },
  					(e)=>{/* error callback */ }
  				);
}else{
  $log.error("LottoNewRelic not available");
}