Skip to content

Commit

Permalink
fixed the swiftui navigation file location in all files
Browse files Browse the repository at this point in the history
  • Loading branch information
mbruin-NR committed Feb 13, 2023
1 parent 98694d5 commit 37a8cec
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ These procedures to configure your iOS app with CocoaPods and Swift also appear
open App.xcworkspace
```
4. In your `AppDelegate.swift`, add the New Relic header:
(If your app is written in SwiftUI, follow these [instructions](/docs/mobile-monitoring/new-relic-mobile-ios/installation/swiftui-appdelegate) to add an AppDelegate to your project.)
(If your app is written in SwiftUI, follow these [instructions](/docs/mobile-monitoring/new-relic-mobile-ios/troubleshoot/swiftui-appdelegate) to add an AppDelegate to your project.)

```
import NewRelic
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ Continue with the steps to configure New Relic.

<td>
1. Import the New Relic agent by adding `import NewRelic` to the top of `AppDelegate.swift`.
(If your app is written in SwiftUI, follow these [instructions](/docs/mobile-monitoring/new-relic-mobile-ios/installation/swiftui-appdelegate) to add an AppDelegate to your project.)
(If your app is written in SwiftUI, follow these [instructions](/docs/mobile-monitoring/new-relic-mobile-ios/troubleshoot/swiftui-appdelegate) to add an AppDelegate to your project.)
2. Add `NewRelic.start(withApplicationToken: "APP_TOKEN")` to the top of `application(_:didFinishLaunchingWithOptions:)` in your `AppDelegate.swift` using the unique [application token](/docs/mobile-apps/viewing-your-application-token) that is automatically generated.
</td>
</tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Continue with the steps to configure New Relic for mobile monitoring.
3. Select the NewRelic package product, select your target, and select Finish.

4. In your `AppDelegate.swift` file, add this call as the first line of `applicationDidFinishLaunchWithOptions`, replacing `APP_TOKEN` with your [application token](/docs/mobile-apps/viewing-your-application-token):
(If your app is written in SwiftUI, follow these [instructions](/docs/mobile-monitoring/new-relic-mobile-ios/installation/swiftui-appdelegate) to add an AppDelegate to your project.)
(If your app is written in SwiftUI, follow these [instructions](/docs/mobile-monitoring/new-relic-mobile-ios/troubleshoot/swiftui-appdelegate) to add an AppDelegate to your project.)

```
NewRelic.start(withApplicationToken:"APP_TOKEN")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Before adding the AppDelegate, follow the [outlined procedure](docs/mobile-monit
1. Add a new file to your project named `AppDelegate`
2. Then in that file add a class named `AppDelegate` that inherits from NSObject and conforms to the UIApplicationDelegate protocol.
3. In the AppDelegate class you created, add the application:didFinishLaunchingWithOptions function.
4. As close to the start of that function as possible add `NewRelic.start(withApplicationToken: "APP_TOKEN")` replacing APP_TOKEN with your [application token](/docs/mobile-apps/viewing-your-application-token).
4. As close to the start of application:didFinishLaunchingWithOptions as possible add `NewRelic.start(withApplicationToken: "APP_TOKEN")` replacing APP_TOKEN with your [application token](/docs/mobile-apps/viewing-your-application-token).

<Callout variant="important">
To ensure proper instrumentation, you must call the agent on the first line of `didFinishLaunchingWithOptions()`, and run the agent on the main thread. Starting the call later, on a background thread, or asynchronously can cause unexpected or unstable behavior.
Expand Down
2 changes: 1 addition & 1 deletion src/nav/mobile-monitoring.yml
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,6 @@ pages:
- title: Event limits and sampling
path: /docs/mobile-monitoring/new-relic-mobile-ios/troubleshoot/event-limits-sampling
- title: SwiftUI AppDelegate
path: /docs/mobile-monitoring/new-relic-mobile-ios/installation/swiftui-appdelegate
path: /docs/mobile-monitoring/new-relic-mobile-ios/troubleshoot/swiftui-appdelegate
- title: React Native agent
path: /docs/mobile-monitoring/new-relic-monitoring-react-native/monitor-your-react-native-application

0 comments on commit 37a8cec

Please sign in to comment.