2.12.7.0 and Later¶
Android SDK version 30¶
The Tapkey Mobile SDK is build now against the Android SDK 30.
Migration¶
Permissions¶
For Android Apps targeting API Level 30 the permission behaviour for scanning for bluetooth devices has changed. Devices running Android 11 or later need the permission android.permission.ACCESS_FINE_LOCATION
otherwise scanning for locks will always return an empty list.
Add the following uses-permission
entry in a target app's AndroidManifest, if not already present:
<manifest … >
…
<uses-permission-sdk-23 android:name="android.permission.ACCESS_FINE_LOCATION"/>
<application … >
…
</manifest>
Before scanning for locks ensure that the permission android.permission.ACCESS_FINE_LOCATION
has been granted.
This can be be done (e.g.) by calling ContextCompat.checkSelfPermission(...)
. Find more information in the android developer documention.