Newrelic Cordova Ios banner
newrelic newrelic

Newrelic Cordova Ios

Development community

Description

A PhoneGap / Cordova plugin for New Relic's iOS SDK

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

[![Archived header](https://github.com/newrelic/open-source-office/raw/master/examples/categories/images/Archived.png)](https://github.com/newrelic/open-source-office/blob/master/examples/categories/index.md#archived)

Checkout our new [cordova plugin](https://github.com/newrelic/newrelic-cordova-plugin) with Android and iOS support

Available at https://github.com/newrelic/newrelic-cordova-plugin

Improvments include:

  • streamlined installation
  • automatic config.xml editing
  • automatic post build script injection


this plugin is : # `D E P R E C A T E D` This plugin is deprecated in favor of the [New Relic iOS/Android Cordova plugin](https://github.com/newrelic/newrelic-cordova-plugin).

New Relic iOS SDK for Cordova and PhoneGap

The official New Relic iOS SDK plugin for Cordova and PhoneGap.

Installation

  • In your PhoneGap/Cordova project directory run this command:
cordova plugin add https://github.com/newrelic/newrelic-cordova-ios
  • Open your project's top-level config.xml file and add this line with your New Relic token:
" />
  • Open the iOS project in Xcode (located in <project>/platforms/ios/<project>.xcodeproj)
  • Click on your Project in the Project Navigator window, under Targets select your app, and click the Build Phases tab.
  • Click the "+" at the top of the Build Phases section and select "New Run Script Phase".
  • In the script text area (beneath the Shell line) enter this script, adding your New Relic token:
SCRIPT=`/usr/bin/find "${SRCROOT}" -name newrelic_postbuild.sh | head -n 1`
/bin/sh "${SCRIPT}" ""
  • Now you can either run your app directly from Xcode or exit out and run your app via the command line. In several minutes, you should be able to see data being reported in your New Relic Mobile account.

License

newrelic-cordova-ios plugin is licensed under the Apache 2 License. http://www.apache.org/l