{ "id": "139505", "key": "TIMOB-18023", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "16593", "description": "Release 4.0.0", "name": "Release 4.0.0", "archived": false, "released": true, "releaseDate": "2015-05-21" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-01-06T18:12:12.000+0000", "created": "2014-11-11T20:53:47.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2015-04-09T20:53:52.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h6.Request Description\r\nWhile using the Titanium.Geolocation.Android manual mode, only one provider is registered at the time. If the application is facing these scenarios: \r\n\r\n* If the application isn't getting updates frequently enough, it can adjust its provider settings to provide more updates, or relax its location rules to allow less accurate updates through. \r\n* If the application isn't receiving accurate enough updates from one provider, it can add another provider to try to improve results. \r\n* If the application is getting sufficiently accurate results from the network provider, it can disable the GPS provider to save power.\r\n\r\nh6.Customer's remarks\r\nThat would require a lot of additional logic for android only to have it switch between them during the scenarios outlined previously. \r\n\r\nWould it be possible that we be able to configure the android location update settings to use GPS, NETWORK, or PASSIVE so that we can just configure the updateDistance and time for the location updates.\r\n\r\nThat would bring this into close parity with the iOS implementation. \r\n\r\nh6.Titanium Docs\r\nhttp://docs.appcelerator.com/titanium/latest/#!/api/Titanium.Geolocation.Android", "attachment": [], "flagged": false, "summary": "Android: Feature Request: To be able to configure the android location update settings to use GPS, NETWORK, or PASSIVE so that we can just configure the updateDistance and time for the location updates", "creator": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "335823", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Related notes: http://developer.android.com/guide/topics/location/strategies.html", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-12-10T17:02:48.000+0000", "updated": "2014-12-10T17:02:48.000+0000" }, { "id": "336963", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{code}\r\nvar count = 0;\r\nvar window = Ti.UI.createWindow({backgroundColor: \"white\"});\r\nvar locationLabel = Ti.UI.createLabel({text: \"Location: \", top: 0, color: \"red\"});\r\nvar countLabel = Ti.UI.createLabel({text: \"Count: 0\", color: \"blue\"});\r\nwindow.add(locationLabel);\r\nwindow.add(countLabel); \r\nTitanium.Geolocation.accuracy = Ti.Geolocation.ACCURACY_HIGH;\r\nTi.Geolocation.addEventListener('location', function(e) {\r\n\tif (e && e.provider && e.provider.name) {\r\n\t\tlocationLabel.text = locationLabel.text + e.provider.name + \", \";\r\n\t\tcount++;\r\n\t\tcountLabel.text = \"Geo events count: \" + count;\r\n\t}\r\n});\r\nwindow.open();\r\n{code}\r\n\r\n1. Run code and observe frequency of Geo events fired using simple mode.\r\n\r\nmaster PR: https://github.com/appcelerator/titanium_mobile/pull/6503", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-12-18T03:19:41.000+0000", "updated": "2014-12-18T03:22:16.000+0000" }, { "id": "349092", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the new implementation.\r\n\r\nEnvironment:\r\nAppc Studio : 4.0.0.201504081125\r\nTi SDK : 4.0.0.v20150408131013\r\nCLI : 4.0.0-beta5\r\nAlloy : 1.6.0-beta2\r\nMAC Yosemite : 10.10.2\r\nAppc CLI environment : preprod\r\nAppc npm : 0.3.39\r\nAppc CLI : 0.2.235\r\n", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-04-09T20:53:38.000+0000", "updated": "2015-04-09T20:53:38.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }