Ping SDKs

Step 3. Test the app


In this step, you run and test the sample app.

You run it in the emulator or on your Android device and perform authentication with a demo user.

  1. In Android Studio, select Run > Run 'app'.

  2. In the sample app, on the Environment page, select the environment you configured in the last step.

  3. Tap the menu icon (), tap rocket_launch Launch Journey, and then tap Submit.

  4. Sign on as a demo user:

    • Name: demo

    • Password: Ch4ng3it!

  5. After successful authentication the app displays the session token:

    kotlin ui session token en
    Figure 1. Viewing a user’s session token in the Android sample app.
  6. Tap Show Userinfo.

    The app displays the user info for the account.

    kotlin ui userinfo en
    Figure 2. Viewing userinfo for an account in the Android sample app.
  7. Tap the menu icon (), and then tap generating_tokens Show Token.

    The app displays the access, refresh, and ID tokens for the account. You can also view the scopes granted to the user.

    kotlin ui oauth2 tokens en
    Figure 3. Viewing OAuth 2.0 tokens for an account in the Android sample app.
  8. Tap the menu icon (), and then tap logout Logout.

    The app terminates the user session and returns to the Launch Journey page.