---
title: Step 3. Test the app
description: PingOne Advanced Identity Cloud PingAM iOS
component: orchsdks
page_id: orchsdks:journey:try-it-out/ios/03_run_the_sample
canonical_url: https://developer.pingidentity.com/orchsdks/journey/try-it-out/ios/03_run_the_sample.html
revdate: Mon, 3 Jul 2023 18:00:37 +0100
keywords: ["PingOne Advanced Identity Cloud", "PingAM", "Journeys", "Setup &amp; Configuration", "Source Code", "Tutorial", "SDK"]
---

# Step 3. Test the app

[icon: circle-check, set=far]PingOne Advanced Identity Cloud [icon: circle-check, set=far]PingAM [icon: apple, set=fab]iOS

* [Prepare](00_before-you-begin.html)

* [Download](01_download_samples.html)

* [Configure](02_configure_sample_for_journeys.html)

* **Run**

In the following procedure, you run the sample app that you configured in the previous step. The app steps through the login journey, rendering a UI to collect the required data for each node, for example a username and password node, together inside a page node.

1. In Xcode, select Product > Run.

   Xcode launches the sample app in the iPhone simulator.

   ![swiftui journey menu](../../_images/sample-apps/ios/swiftui-journey-menu.png)Figure 1. Starting the "swiftui-journey-module" app in an iOS simulator

2. In the sample app on the iPhone simulator, tap Journey Flow.

3. Enter the name of the journey to launch, for example `Login` or `sdkUsernamePasswordJourney` and then tap **Start Journey**.

4. Sign on as a demo user:

   * **Name**: `demo`

   * **Password**: `Ch4ng3it!`

   After successful authentication the app displays the access token:

   ![swiftui journey access token](../../_images/sample-apps/ios/swiftui-journey-access-token.png)Figure 2. Viewing access token in the iOS sample app.

5. Tap **Back** ([icon: chevron-left, set=fas]) to return to the menu, and then tap **User Info**.

   The app displays the user info related to the session token:

   ![swiftui journey user info](../../_images/sample-apps/ios/swiftui-journey-user-info.png)Figure 3. Viewing userinfo for an account in the iOS sample app.

6. Tap **Back** ([icon: chevron-left, set=fas]) to return to the menu, and then tap **Device Management**.

   The app displays buttons to select the device type, and information about registered devices:

   ![swiftui journey device self service](../../_images/sample-apps/ios/swiftui-journey-device-self-service.png)Figure 4. Viewing registered devices for an account in the iOS sample app.

7. Tap **Back** ([icon: chevron-left, set=fas]) to return to the menu, tap **Logout**, and then tap **Proceed to logout** .

   The app ends the session, revokes tokens on the server, and deletes them from storage on the device.
