Giter VIP home page Giter VIP logo

newrelic-cordova-ios's Introduction

Archived header

Checkout our new 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:
<preference name="NewRelicApplicationToken" value="<YOUR_TOKEN_HERE>" />
  • 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}" "<YOUR_TOKEN_HERE>"
  • 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/licenses/LICENSE-2.0.html

NewRelicAgent.framework is Copyright (c) 2014 New Relic. All rights reserved. For license details see https://docs.newrelic.com/docs/licenses/ios-agent-licenses

newrelic-cordova-ios's People

Contributors

bryce-buchanan avatar melissaklein24 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

newrelic-cordova-ios's Issues

problem with installing the plugin

Installation as described in the readme does not work as authentication is required:

$ cordova plugin add https://source.datanerd.us/mobile/newrelic-cordova-ios
Fetching plugin "https://source.datanerd.us/mobile/newrelic-cordova-ios" via git clone
Username for 'https://source.datanerd.us':

I installed the plugin using this repo:

$ cordova plugin add https://github.com/newrelic/newrelic-cordova-ios.git

and followed the rest of the instructions provided. This did not cause any errors however no data appears in the New Relic backend. This did work with https://github.com/jeff-french/newrelic-cordova

As the new New Relic backend recommended to upgrade I thought this official implementation would be the way to go.

Hybrid App Dev and Plugin?

Having a little trouble understanding the installation directions here. If you're building a hybrid app, you typically are only dealing with changes to the config.xml file for installation of the plugin. Here you are talking about using XCode and command line shell scripts to perform alterations. Are there any more modern installation instructions for plugin installation that allow you to use 3rd party build services like PhoneGap Build?

Error trying to build with latest version

ld: warning: directory not found for option '-FMy App/Plugins/com.newrelic.cordova'
undef: _CTRadioAccessTechnologyeHRPD
undef: _CTRadioAccessTechnologyLTE
undef: _CTRadioAccessTechnologyWCDMA
undef: _CTRadioAccessTechnologyHSDPA
undef: _CTRadioAccessTechnologyEdge
undef: _CTRadioAccessTechnologyCDMAEVDORevA
undef: _CTRadioAccessTechnologyCDMAEVDORevB
undef: _deflateInit_
undef: _deflateEnd
undef: _CTRadioAccessTechnologyCDMAEVDORev0
undef: _CTRadioAccessTechnologyCDMA1x
undef: _deflate
undef: _CTRadioAccessTechnologyGPRS
undef: _SCNetworkReachabilitySetCallback
undef: _SCNetworkReachabilityGetFlags
undef: _CTRadioAccessTechnologyHSUPA
undef: _SCNetworkReachabilityCreateWithAddress
undef: _CTRadioAccessTechnologyDidChangeNotification
undef: _SCNetworkReachabilityUnscheduleFromRunLoop
undef: _OBJC_CLASS_$_CTTelephonyNetworkInfo
undef: _SCNetworkReachabilityCreateWithName
undef: _SCNetworkReachabilityScheduleWithRunLoop
Undefined symbols for architecture i386:
  "_CTRadioAccessTechnologyeHRPD", referenced from:
      -[NRMAReachability getCurrentWanNetworkType:] in NewRelicAgent(NRMAReachability.o)
  "_CTRadioAccessTechnologyLTE", referenced from:
      -[NRMAReachability getCurrentWanNetworkType:] in NewRelicAgent(NRMAReachability.o)
  "_CTRadioAccessTechnologyWCDMA", referenced from:
      -[NRMAReachability getCurrentWanNetworkType:] in NewRelicAgent(NRMAReachability.o)
  "_CTRadioAccessTechnologyHSDPA", referenced from:
      -[NRMAReachability getCurrentWanNetworkType:] in NewRelicAgent(NRMAReachability.o)
  "_CTRadioAccessTechnologyEdge", referenced from:
      -[NRMAReachability getCurrentWanNetworkType:] in NewRelicAgent(NRMAReachability.o)
  "_CTRadioAccessTechnologyCDMAEVDORevA", referenced from:
      -[NRMAReachability getCurrentWanNetworkType:] in NewRelicAgent(NRMAReachability.o)
  "_CTRadioAccessTechnologyCDMAEVDORevB", referenced from:
      -[NRMAReachability getCurrentWanNetworkType:] in NewRelicAgent(NRMAReachability.o)
  "_deflateInit_", referenced from:
      -[NRMAHarvesterConnection createPostWithURI:message:] in NewRelicAgent(NRMAHarvesterConnection.o)
  "_deflateEnd", referenced from:
      -[NRMAHarvesterConnection createPostWithURI:message:] in NewRelicAgent(NRMAHarvesterConnection.o)
  "_CTRadioAccessTechnologyCDMAEVDORev0", referenced from:
      -[NRMAReachability getCurrentWanNetworkType:] in NewRelicAgent(NRMAReachability.o)
  "_CTRadioAccessTechnologyCDMA1x", referenced from:
      -[NRMAReachability getCurrentWanNetworkType:] in NewRelicAgent(NRMAReachability.o)
  "_deflate", referenced from:
      -[NRMAHarvesterConnection createPostWithURI:message:] in NewRelicAgent(NRMAHarvesterConnection.o)
  "_CTRadioAccessTechnologyGPRS", referenced from:
      -[NRMAReachability getCurrentWanNetworkType:] in NewRelicAgent(NRMAReachability.o)
  "_SCNetworkReachabilitySetCallback", referenced from:
      -[CDVReachability startNotifier] in CDVReachability.o
  "_SCNetworkReachabilityGetFlags", referenced from:
      -[CDVReachability connectionRequired] in CDVReachability.o
      -[CDVReachability currentReachabilityStatus] in CDVReachability.o
      -[NRMAReachability connectionRequired] in NewRelicAgent(NRMAReachability.o)
      -[NRMAReachability currentReachabilityStatus] in NewRelicAgent(NRMAReachability.o)
  "_CTRadioAccessTechnologyHSUPA", referenced from:
      -[NRMAReachability getCurrentWanNetworkType:] in NewRelicAgent(NRMAReachability.o)
  "_SCNetworkReachabilityCreateWithAddress", referenced from:
      +[CDVReachability reachabilityWithAddress:] in CDVReachability.o
      +[NRMAReachability reachability] in NewRelicAgent(NRMAReachability.o)
  "_CTRadioAccessTechnologyDidChangeNotification", referenced from:
      -[NRMAReachability init] in NewRelicAgent(NRMAReachability.o)
  "_SCNetworkReachabilityUnscheduleFromRunLoop", referenced from:
      -[CDVReachability stopNotifier] in CDVReachability.o
  "_OBJC_CLASS_$_CTTelephonyNetworkInfo", referenced from:
      objc-class-ref in NewRelicAgent(NRMAReachability.o)
  "_SCNetworkReachabilityCreateWithName", referenced from:
      +[CDVReachability reachabilityWithHostName:] in CDVReachability.o
  "_SCNetworkReachabilityScheduleWithRunLoop", referenced from:
      -[CDVReachability startNotifier] in CDVReachability.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Is it possible this was caused by the space in my project's dirname? Or possibly that I'm building for ios9 with xcode 7?

Missing Info.plist

Seems to have been removed in 1322d8d
Was this on purpose?

Causes this error in simulator

 <Error>: Error Domain=LaunchServicesError Code=0 "(null)" UserInfo={Error=PackageInspectionFailed, ErrorDescription=Failed to load Info.plist from bundle at path /Users/xxxx/Library/Developer/CoreSimulator/Devices/A0C94FF7-6370-4BA2-A2BE-54E69E48351D/data/Library/Caches/com.apple.mobile.installd.staging/temp.HQiMtQ/extracted/Payload/xxxx.app/Frameworks/NewRelicAgent.framework}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.