Step 2. Handling URI schemes
PingOne Advanced Identity Cloud PingAM Android
You must configure your Android app to open when the server redirects the user after authentication.
For example, you could use 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.ktsfile. -
In the
android.defaultConfigsection, add a manifest placeholder for theappRedirectUriSchemeproperty that specifies the protocol of the custom schema:android { defaultConfig { manifestPlaceholders["appRedirectUriScheme"] = "myapp" } }This creates a custom redirect scheme like
myapp://...to return to your application.Replace
myappwith a custom scheme specific to your apps.