- Detect the platforms added to your Cordova application and apply the most recent release of the appropriate New Relic Mobile agent (Android , iOS )
- Add post-build scripts for uploading iOS symbolication files
- Upload Android Proguard mapping files
- Automatically instrument mobile applications built via Cordova
- Cordova 4.x or newer
- Node 6.0 or newer
- Cordova CLI tools
- Android and iOS Cordova platforms
- New Relic Mobile application tokens
Make sure you have fulfilled the prerequisites for adding the Android or iOS platform to your Cordova project.
If you don't have a New Relic account, create a free trial and add an application from your account page. We suggest using separate applications for iOS and Android.
Finally, copy the application tokens from your New Relic applications page, and have them ready for the next step. You only need to copy the application tokens of the platforms you are building on.
Change to your Cordova project directory and add the plugin to your project using the Cordova command line tool. The --variable
argument is used to pass application tokens to the plugin.
# Install from github repository
cordova plugin add https://github.com/newrelic/newrelic-cordova-plugin.git --variable IOS_APP_TOKEN="{ios-app-token}" --variable ANDROID_APP_TOKEN="{android-app-token}"
Update the New Relic Cordova plugin to the latest released version easily via the following command:
cordova plugin update
We welcome code contributions (in the form of pull requests) from our user community. Before submitting a pull request please review these guidelines.
Following these helps us efficiently review and incorporate your contribution and avoid breaking your code with future changes to the agent.
Copyright (c) 2017 New Relic. All rights reserved. For New Relic agent license details see: