Follow this guide to integrate Portal in your Android app.
build.gradle
to include the portal-android
dependency
build.gradle
file, you must sync gradle and you’re ready to import Portal into an Activity of your choice.
With the Portal Android
dependency now installed, we can now create an instance of the Portal
class. Below is an example of how you can do this. In this example, we’re using your app’s MainActivity
.
PortalHttpUnauthorizedException
which you can use as an indicator to refresh your CST.