Skip to content

3.2.0

Latest
Compare
Choose a tag to compare
@gr0 gr0 released this 25 Jun 12:19
· 4 commits to master since this release
526d734

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.