Android Version Notes¶
Android 8.0 (Oreo) - 2017¶
In an effort to reduce power consumption, Android 8.0 (API level 26) limits how frequently background apps can retrieve the user’s current location. Apps can receive location updates only a few times each hour.
In order to prevent these new restrictions from impacting your application you will need to add the following lines to the instantiation of the GeoMoby object -
.setForeground("Your app's name", "Your app's persistent notification text", R.mipmap.ic_launcher) // Only required for Android Oreo
.forceForeground(true) // Only required for Android Oreo - Default is "false"
Android 9.0 (Pie) - 2018¶
From Android Pie, persistent notifications and callbacks are handled in the GeomobyUserService Service class - See Action Callbacks section