Hello, we would like to licence our application with a named user account. When we run the code below we get "portal.portalInfo must not be null" error. Is there a special setting in portal-side for this? Thanks.
//license
val credential = UserCredential("username", "pass")
val portal = Portal("PortalURL")
portal.credential = credential
portal.loadAsync()
portal.addDoneLoadingListener({
try{
// get license info from the portal
val licenseInfo = portal.portalInfo.licenseInfo
// Apply the license at Standard level
ArcGISRuntimeEnvironment.setLicense(licenseInfo)
//do something...
} catch (e: Exception){
Log.d("ERROR:", e.message)
}
})