Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26955] Android: Test location collection without "ACCESS_BACKGROUND_LOCATION" permission on Android Q

GitHub Issuen/a
TypeStory
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2019-09-09T17:22:12.000+0000
Affected Version/sn/a
Fix Version/sRelease 8.3.0
ComponentsAndroid
Labelsandroid, geolocation, location, permission
ReporterJoshua Quick
AssigneeGary Mathews
Created2019-03-30T00:57:12.000+0000
Updated2019-09-09T17:22:12.000+0000

Description

*Summary:* Android Q introduces the following new "AndroidManifest.xml" permission...
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION"/>
This permission is needed to collect "location" data while the app is in the background. This permission is not needed if the app is currently running a "foreground" service. https://developer.android.com/preview/privacy/device-location#request-background-location *To Do:*

Verify what happens when collecting "location" data from Ti.Geolocation in a backgrounded Titanium app without this permission defined in the "AndroidManifest.xml". _(Should not crash. Should log an error instead.)_

Verify what happens when calling Ti.Geolocation.requestLocationPermissions() without the above ACCESS_BACKGROUND_LOCATION and attempt to collection "location" data in the background.

Verify what happens when calling Ti.Android.requestPermissions() with both ACCESS_BACKGROUND_LOCATION and ACCESS_COURSE_LOCATION defined... and the end-user taps "no" for backgrounding.

Comments

  1. Gary Mathews 2019-09-09

    Provided a detailed example for obtaining location in the background as part of: 8_3_X: https://github.com/appcelerator/titanium_mobile/pull/11197 android.permission.ACCESS_BACKGROUND_LOCATION is required for background location logging.

JSON Source