newrelic-flutter-integration
newrelic-flutter-integration copied to clipboard
Cannot install the New Relic agent in the first place
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:
Can you help me starting the agent?
Thanks!