Step 2. Handling URI schemes
You must configure your Android app to open when the server redirects the user to the custom URI scheme you entered when setting up PingOne.
This tutorial uses the custom URI scheme myapp://example.com
.
To configure your app to open when using the custom URI scheme:
-
In the Project tree view of your Android Studio project, open the
build.gradle.kts
file. -
In the
android.defaultConfig
section, add a manifest placeholder for theappRedirectUriScheme
property that specifies the protocol of the custom schema:android { defaultConfig { manifestPlaceholders["appRedirectUriScheme"] = "myapp" } }