Skip to content

Commit

Permalink
send geofence broadcasts right away
Browse files Browse the repository at this point in the history
  • Loading branch information
tjulien committed Mar 16, 2024
1 parent 162eda2 commit c837e2a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion sdk/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ apply plugin: "org.jetbrains.dokka"
apply plugin: 'io.radar.mvnpublish'

ext {
radarVersion = '3.9.8-beta.4'
radarVersion = '3.9.8-beta.5'
}

String buildNumber = ".${System.currentTimeMillis()}"
Expand Down
6 changes: 1 addition & 5 deletions sdk/src/main/java/io/radar/sdk/RadarLocationReceiver.kt
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,7 @@ class RadarLocationReceiver : BroadcastReceiver() {
return
}

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP && !RadarForegroundService.started) {
RadarJobScheduler.scheduleJob(context, location, source)
} else {
Radar.handleLocation(context, location, source)
}
Radar.handleLocation(context, location, source)
}
ACTION_LOCATION -> {
val location = Radar.locationManager.getLocationFromLocationIntent(intent)
Expand Down

0 comments on commit c837e2a

Please sign in to comment.