Skip to content

Commit d97f41f

Browse files
committed
Android return locationId in location events
1 parent 9ee0dda commit d97f41f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

android/lib/src/main/java/com/marianhello/react/BackgroundGeolocationModule.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,12 +375,12 @@ public void onAuthorizationChanged(int authStatus) {
375375

376376
@Override
377377
public void onLocationChanged(BackgroundLocation location) {
378-
sendEvent(LOCATION_EVENT, LocationMapper.toWriteableMap(location));
378+
sendEvent(LOCATION_EVENT, LocationMapper.toWriteableMapWithId(location));
379379
}
380380

381381
@Override
382382
public void onStationaryChanged(BackgroundLocation location) {
383-
sendEvent(STATIONARY_EVENT, LocationMapper.toWriteableMap(location));
383+
sendEvent(STATIONARY_EVENT, LocationMapper.toWriteableMapWithId(location));
384384
}
385385

386386
@Override

0 commit comments

Comments
 (0)