{ "id": "176071", "key": "AC-6685", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": null, "resolutiondate": null, "created": "2021-02-24T09:40:52.000+0000", "labels": [ "Geolocation", "Track", "beach", "park" ], "versions": [ { "id": "17032", "name": "Appcelerator Studio 4.3.0", "archived": false, "released": false } ], "issuelinks": [], "assignee": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2021-04-01T15:50:06.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "14550", "name": "Appcelerator Modules", "description": "Please enter tickets related to Modules here." } ], "description": "Hello, I am making an application where I have to make a route track. Everything works fine but I have to enter the event Titanium.Geolocation.addEventListener ('location', locationCallback) in park or field zones;\r\nstop making calls, it's like it's deactivated. When I leave the park it works again.\r\n\r\nI am attaching the code in case you can please tell me what the problem may be .. Thanks in advance...\r\n\r\n{code:js}\r\n // Create foreground service.\r\n Ti.Geolocation.Android.manualMode = true;\r\n var gpsProvider = Ti.Geolocation.Android.createLocationProvider({\r\n name: Titanium.Geolocation.Android.PROVIDER_GPS,\r\n minUpdateTime: 1, // 1 Buena\r\n minUpdateDistance: 2 // 4 Buena prueba\r\n });\r\n \r\n var gpsRule = Ti.Geolocation.Android.createLocationRule({\r\n provider: Titanium.Geolocation.Android.PROVIDER_GPS,\r\n accuracy: 20, //ACCURACY_BEST //Ti.Geolocation.ACCURACY_BEST // 20 buenos resultados\r\n maxAge: 20000, //milisegundos //30000 buena pocos puntos\r\n minAge: 10000, //milisegundos //10000 buena\r\n });\r\n \r\n Ti.Geolocation.Android.addLocationProvider(gpsProvider);\r\n Ti.Geolocation.Android.addLocationRule(gpsRule);\r\n Ti.Geolocation.activityType = Ti.Geolocation.ACTIVITYTYPE_OTHER_NAVIGATION; \r\n Ti.Geolocation.Android.manualMode = true;\r\n\r\n\r\n\r\n var locationCallback = function(e) {\r\n if (!e.success || e.error) {\r\n //Ti.API.info('error:' + JSON.stringify(e.error));\r\n } else {\r\n Ti.API.info('Entra: ' + JSON.stringify(e.coords));\r\n Alloy.Globals.actualizaTrack(e);\r\n }\r\n};\r\n\r\nTitanium.Geolocation.addEventListener('location', locationCallback);\r\n{code}", "attachment": [], "flagged": false, "summary": "Titanium.Geolocation component's \"location\" event does not work within parks, beaches, it only works on streets and roads ", "creator": { "name": "raul@rearmachine.com", "key": "raul@rearmachine.com", "displayName": "raul@rearmachine.com", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "raul@rearmachine.com", "key": "raul@rearmachine.com", "displayName": "raul@rearmachine.com", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Android, Windows 10. SDK 9.3.2", "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }