The 3.2.0
release makes the Sematext Logs Android SDK compatible with the Android SDK 30. It changes now you initialize the automatic location enrichment - the application is now responsible for asking the user for permission to use the location data. If the permissions are not granted automatic location enrichment will not be working.
One of the following permissions are required for automatic location:
android.permission.ACCESS_COARSE_LOCATION
android.permission.ACCESS_FINE_LOCATION
The initialization itself case be done in the following way:
// first initialize the Logsene object
Logsene.init(this);
Logsene logsene = Logsene.getInstance();
.
.
.
// once the permissions are granted initialize the location listener
logsene.initializeLocationListener(context);
Refer to Enriching Logs with Location section of the README file to learn more.