Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-28114] TiAPI: Geolocation Parity

GitHub Issuen/a
TypeEpic
PriorityHigh
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 9.2.0
Fix Version/sn/a
ComponentsAndroid, iOS, TiAPI
Labelsandroid, engSchedule, geolocation, gps, iOS, parity, permission
ReporterChristopher Williams
AssigneeJoshua Quick
Created2020-09-08T19:02:57.000+0000
Updated2021-02-22T19:01:30.000+0000

Description

*Summary:* Writing cross-platform code to acquire permission to access GPS data, especially in the background, is currently difficult with our existing [Ti.Geolocation](https://docs.appcelerator.com/platform/latest/#!/api/Titanium.Geolocation) APIs. It requires the developer to use platform specific APIs on both Android and iOS to do this. There are also OS version specific APIs that must be used on both Android and iOS that makes things even more cumbersome. We should investigate creating higher-level API in Titanium to make this easier. *Current Example:* The attached [^GeolocationGpsTest.js], [^GeolocationGpsService.js], and [^tiapp.xml] shows what it takes to do the above today using our existing APIs. It's startLocationTracking() method is about 100 lines long and needs to use platform specific APIs to work. The ideal solution is to simplify this with less lines of code using cross-platform and cross-os-version APIs.

Attachments

FileDateSize
GeolocationGpsService.js2020-09-10T03:21:18.000+0000419
GeolocationGpsTest.js2020-09-10T03:21:18.000+00005482
tiapp.xml2020-09-10T03:24:02.000+00001083

Comments

No comments

JSON Source