newrelic-flutter-integration icon indicating copy to clipboard operation
newrelic-flutter-integration copied to clipboard

Cannot install the New Relic agent in the first place

Open marlonfrr opened this issue 4 years ago • 1 comments

Hello :), I'm trying to use New Relic within my Flutter App so I was following your steps to install de agent first, but in the step called "Start the agent", I don't know where to put this:

  • NewRelic.withApplicationToken( "YOUR_KEY" ).start(this.getApplication());

You say that goes in the onCreate method but I don't have such method in my entire application. I have a file called MainActivity.kt (android/app/src/main/kotlin/com/example/APPNAME/MainActivity.kt) but the only method I have here is the following: image

Can you help me starting the agent?

Thanks!

marlonfrr avatar Oct 16 '20 18:10 marlonfrr