Accessia SDK
Accessia’s SDK provides services for:
Authentication with Accessia’s cloud backend
Communication with nearby Accessia doors for access
Monitoring user location while on site
Requirements
The SDK will add some required permissions to your third party app:
INTERNETRequired to talk to Accessia CloudPOST_NOTIFICATIONSRequired for location services & mobile access. The foreground service must surface a notification when it is started. This can be muted by the userBLUETOOTHRequired for location services & mobile accessBLUETOOTH_ADMINUsed by the PermissionRequester utility to turn Bluetooth on for location services, if required and allowed by the userBLUETOOTH_SCANRequired for location services & mobile accessBLUETOOTH_CONNECTRequired for mobile accessACCESS_COARSE_LOCATIONRequired for location services & mobile accessACCESS_FINE_LOCATIONRequired for location services & mobile accessACCESS_BACKGROUND_LOCATIONRequired for location services & mobile access. This is needed for geofencing and starting foreground services in the backgroundFOREGROUND_SERVICERequired for location services & mobile accessFOREGROUND_SERVICE_LOCATIONRequired for location services & mobile accessRECEIVE_BOOT_COMPLETEDRequired for location services & mobile access. On boot completed, we reset the geofences and check if we need to restart the services, based on geofence locationNFCRequired for mobile accessVIBRATERequired for mobile access
It will also declare usage of the following features:
android.hardware.bluetooth_le: Required for location services & mobile accessandroid.hardware.nfc.hce: Required for mobile access
You may need to update your Google Play store listing for some of these, such as foreground service location and background location
Configuration
At the entry point of your application call
AccessiaSDK.configure(config: AccessiaConfig, callbacks: AccessiaCallbacks, logger: Timber.Tree? = null)To authenticate you must provide a pair of bearer tokens, namely authentication and refresh, to
AccessiaSDK.signIn(context: Context, customerHost: String, accessToken: String, refreshToken: String, expiresIn: Int)Call
AccessiaSDK.startServices(context: Context)to start the location service and door service
Get started
Speak with your Accessia account manager or partner for access to the full SDK
Last updated
Was this helpful?