1.0.0 • Published 4 years ago
lotto-nz-newrelic-interfaces-plugin v1.0.0
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
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");
}
1.0.0
4 years ago