Skip to content

Commit 895c3ab

Browse files
authored
Don't set the event.context.location property to anything if we don't have location permissions. (#195)
1 parent 0718de4 commit 895c3ab

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

samples/kotlin-android-app/src/main/java/com/segment/analytics/next/plugins/PassiveLocationPlugin.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,6 @@ class PassiveLocationPlugin(val context: Context) : Plugin {
7979
put("isMock", JsonPrimitive(passiveLastKnownLocation?.isMock))
8080
}
8181
})
82-
} else {
83-
// If we don't have permissions then just set event.context.location = "n/a"
84-
put("location", JsonPrimitive("n/a"))
8582
}
8683
}
8784

0 commit comments

Comments
 (0)