[TIMOB-15007] Enable retrieving location information periodically on both iOS and Android side as a background service
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Low |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | n/a |
Reporter | Paul Lv |
Assignee | Unknown |
Created | 2013-08-30T09:54:52.000+0000 |
Updated | 2018-02-28T20:03:16.000+0000 |
Description
As part of CLOUDSRV-1807, we need Titanium to provide a way on the iOS and Android side to enable a background services to retrieve device geolocation information periodically.
We will need latitude, longitude, current city, current state, current country, and ZIP information provided as a callback inside a fired event, so that we can write code to update geolocation information into ACS side.
Suggested Method:
- Ti.LocationServices.startTracingLocation(Ti.LocationServices.TracingMethod.STANDARD)
- Ti.LocationServices.startTracingLocation(Ti.LocationServices.TracingMethod.LOCATION_SIGNIFICATE_CHANGE)
- Ti.LocationServices.startTracingLocation(Ti.LocationServices.TracingMethod.CUSTOMIZE, 5) // trigger callback every 5 mins
- Ti.LocationServices.stopTracingLocation()
- Ti.LocationServices.enabledTracingLocation() // return status
Suggested Callback information:
- Longitude
- Latitude
- City
- State
- Zip
- Country
- Timezone
No comments