Android Mobile App Access
DO THIS FIRST
This article assumes you've completed Android General Setup.
HYPR Initialization
- When the app has started, initialize the HYPR SDK for Android v2 during
onCreate()
of your first activity.
fun initializeHYPR() {
HyprApp.initializeApp(context, object : HyprInit.InitTrustDataCallback {
override fun onInstallComplete() {
val hyprAppProfileData = HyprApp.getDbAdapter().getCurHyprAppProfileData(context)
hyprAppProfileData.setBaseDomainUrl(context, rpServerUrl)
hyprAppProfileData.setRpAppId(context, rpAppId)
hyprAppProfileData.setHyprRpAppType(context, HyprRpAppType.OobOff)
}
override fun onInstallError(errorString: String, p1: Throwable?) {
// Fail
}
})
}