{ "id": "171623", "key": "MOD-2419", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10034", "key": "MOD", "name": "Appcelerator Modules", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "11", "description": "Is not a bug in our product", "name": "Not Our Bug" }, "resolutiondate": "2018-12-05T11:26:26.000+0000", "created": "2018-05-07T07:59:15.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "escalation" ], "versions": [], "issuelinks": [], "assignee": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "updated": "2020-01-19T14:34:53.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": "13714", "name": "Geofence" } ], "description": "*Issue overview:*\r\nI implemented the ti.geofence modules for some features of automatic opening of gates while you are driving, so from app closed or in the background. In the implementation for iOS the functionality works well. \r\nFor Android, the \"enterregions\" event of the module is executed not at the entry point but a few minutes later, when you are already closer to the coordinates of the center of the region. I am using version 3.0.0 of the ti.geofence module with Titanium SDK 7.1.0.\r\n\r\n*Test Code:*\r\n{code}\r\nvar Geofence = require(\"ti.geofence\");\r\n\r\n//Set the latitude and longitude here\r\nvar lat = 23.802592;\r\nvar lon = 90.361040;\r\n \r\nvar window = Ti.UI.createWindow({\r\n backgroundColor: 'white'\r\n});\r\n \r\nvar titleInWinA = Ti.UI.createLabel({\r\n left: 70,\r\n top: 100,\r\n\ttext: \"Initializing test-case ...\"\r\n});\r\nwindow.add(titleInWinA);\r\n \r\nwindow.addEventListener(\"open\", function() {\r\n checkLocationPermissions();\r\n});\r\n \r\nfunction checkLocationPermissions() {\r\n if (!Ti.Geolocation.hasLocationPermissions(Ti.Geolocation.AUTHORIZATION_ALWAYS)) {\r\n Ti.Geolocation.requestLocationPermissions(Ti.Geolocation.AUTHORIZATION_ALWAYS, function(e) {\r\n if (!e.success) {\r\n Ti.API.error(\"Error requesting location permissions: \" + e.error);\r\n return;\r\n }\r\n \r\n\t\t\tEnterregions();\r\n });\r\n } else {\r\n \tEnterregions();\r\n }\r\n}\r\n \r\nfunction getCurrentPosition() {\r\n Ti.Geolocation.getCurrentPosition(function(e) {\r\n if (e.error) {\r\n alert('Error: ' + e.error);\r\n } else {\r\n Enterregions(e.coords.latitude, e.coords.longitude);\r\n }\r\n });\r\n}\r\n \r\nfunction Enterregions(l) { \r\n var newRegion = Geofence.createRegion({\r\n center: {\r\n latitude: lat,\r\n longitude: lon\r\n },\r\n radius: 500,\r\n identifier: 'Grameen'\r\n });\r\n \r\n Geofence.startMonitoringForRegions([newRegion]);\r\n \r\n Geofence.addEventListener(\"enterregions\", function(e) {\r\n Ti.API.info('####### enterregion #######: ' + JSON.stringify(e));\r\n\t\ttitleInWinA.setText(titleInWinA.text+\"\\n\"+\"enter region fired!\");\r\n alert('enter region fired');\r\n });\r\n\t\r\n Geofence.addEventListener(\"exitregions\", function(e) {\r\n Ti.API.info('####### exitregion #######: ' + JSON.stringify(e));\r\n\t titleInWinA.setText(titleInWinA.text+\"\\n\"+\"exit region fired!\");\r\n alert('exit region fired');\r\n });\r\n \r\n Geofence.addEventListener(\"monitorregions\", function(e) {\r\n Ti.API.info('####### monitorregions #######: ' + JSON.stringify(e));\r\n\t\ttitleInWinA.setText(titleInWinA.text+\"\\n\"+\"monitoring regions\");\r\n });\r\n}\r\nwindow.open();\r\n{code}\r\n\r\n*Steps to reproduce:*\r\n1. Set the latitude and longitude in the sample code.\r\n2. Run the code and observe that when entering the area, enterregions event for Android runs in delay.\r\n\r\n\r\n*Expected:*\r\nThe enterregions for android should fire at the entry point.\r\n\r\n*Actual:*\r\nIt fires a few minutes later, not at the entry point.\r\n\r\n", "attachment": [], "flagged": false, "summary": "Android: Ti.Geofence module's \"enterregions\" event does not execute at the entry point but a few minutes later on Android.", "creator": { "name": "jnaher", "key": "jnaher", "displayName": "Jebun Naher", "active": false, "timeZone": "Asia/Dhaka" }, "subtasks": [], "reporter": { "name": "jnaher", "key": "jnaher", "displayName": "Jebun Naher", "active": false, "timeZone": "Asia/Dhaka" }, "environment": "Appcelerator Command-Line Interface, version 7.0.2\r\nCopyright (c) 2014-2018, Appcelerator, Inc. All Rights Reserved.\r\n\r\nOperating System\r\n Name = Mac OS X\r\n Version = 10.13.2\r\n\r\nNode.js\r\n Node.js Version = 8.9.1\r\n npm Version = 5.5.1\r\n\r\nAppcelerator CLI\r\n Installer = 4.2.12\r\n Core Package = 7.0.3\r\n\r\nTitanium CLI\r\n CLI Version = 5.1.0\r\n node-appc Version = 0.2.44\r\n\r\nTitanium SDKs\r\n 7.1.0.GA\r\n Version = 7.1.0\r\n\r\nTi.Geofence module version: 3.0.0\r\n\r\nPhysical devices: \r\nSamsung J5 2015 (SM-J500FN) (Android 6.0.1)\r\nLG K8 2017 (LG-M200) (Android 7.0)\r\n", "comment": { "comments": [ { "id": "437455", "author": { "name": "sandrolain", "key": "sandrolain", "displayName": "Sandro Lain", "active": true, "timeZone": "Europe/Rome" }, "body": "Hello\r\nAdditional note: the enterregions event is fired immediately on Android at the time when a region is added and it is already within it.", "updateAuthor": { "name": "sandrolain", "key": "sandrolain", "displayName": "Sandro Lain", "active": true, "timeZone": "Europe/Rome" }, "created": "2018-05-08T07:58:34.000+0000", "updated": "2018-05-08T07:58:34.000+0000" }, { "id": "437456", "author": { "name": "sandrolain", "key": "sandrolain", "displayName": "Sandro Lain", "active": true, "timeZone": "Europe/Rome" }, "body": "The following error is often reported in the logs:\r\n[ERROR] LocationManager: [LGNSS] Disable_PrivacyLocation_Information [tOperator : OPEN ] , [privacy_check : NA]\r\n\r\nLocalization settings are High Accuracy: GPS + Cellular + WiFi", "updateAuthor": { "name": "sandrolain", "key": "sandrolain", "displayName": "Sandro Lain", "active": true, "timeZone": "Europe/Rome" }, "created": "2018-05-08T08:02:43.000+0000", "updated": "2018-05-08T08:02:43.000+0000" }, { "id": "437646", "author": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "body": "[~jnaher] On a physical device (Samsung S7 with Android 7.0), SDK 7.1.0.GA and module version 3.0.0 with mocking location updates I am getting the events almost immediately after entering the region. The delay was about 1-2 seconds no matter if I mock the center of the region or a point near the end. One thing that could help me continue with the troubleshooting is if we know whether the device is locked or not when entering the regions. Using mockup GPS keeps the device unlocked, so this may be a difference between my setup and the reported case.\r\n\r\n[~gmathews] and [~jquick], do you have some input and/or suggestions here ( I haven't dealt with ti.geofences before )?", "updateAuthor": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "created": "2018-05-15T15:03:12.000+0000", "updated": "2018-05-15T15:03:33.000+0000" }, { "id": "437659", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Do we know which Android OS versions this issue is happening on?\r\n[~jnaher], can you ask the customer if this issue is only happening on Android 8.0 and newer OS versions please? I suspect that this is not an issue on older Android OS versions. And also ask if this is only happening while the app is backgrounded.\r\n\r\n[~ybanev], Google has imposed a new limitation on Android 8.0 where GPS data is only reported to backgrounded apps a few times an hour. I'm curious if this is happening with geofencing APIs too. Can you verify this please? Do you have an Android 8 device to test with?\r\nhttps://developer.android.com/about/versions/oreo/background-location-limits\r\n\r\nIf this is the case, then the solution is to implement support for {{Context.startForegroundService()}}. We already have a feature request ticket written up for it here: [TIMOB-16066]\r\nThe plan is to implement this in Titanium 7.3.0.\r\n", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-05-16T03:09:08.000+0000", "updated": "2018-05-16T03:09:53.000+0000" }, { "id": "437662", "author": { "name": "sandrolain", "key": "sandrolain", "displayName": "Sandro Lain", "active": true, "timeZone": "Europe/Rome" }, "body": "Hello\r\nI asked for assistance on the geofencing of android.\r\n\r\nThe devices on which we tested the sample code we received to try are the following:\r\nSamsung J5 2015 (SM-J500FN) (Android 6.0.1)\r\nLG K8 2017 (LG-M200) (Android 7.0)\r\n\r\n", "updateAuthor": { "name": "sandrolain", "key": "sandrolain", "displayName": "Sandro Lain", "active": true, "timeZone": "Europe/Rome" }, "created": "2018-05-16T08:33:37.000+0000", "updated": "2018-05-16T08:33:37.000+0000" }, { "id": "438049", "author": { "name": "sandrolain", "key": "sandrolain", "displayName": "Sandro Lain", "active": true, "timeZone": "Europe/Rome" }, "body": "Hello\r\n\r\nAre there any updates for the problem?\r\nMy company purchased the Pro plan primarily to access geofencing modules.\r\nOur client for whom we are developing the app with geofencing has waited a lot, we need to solve the problem in a short time.\r\n\r\nIf you need more information about it let me know.\r\nMy client is doing other tests with other devices.\r\n\r\nCan the geofencing function be influenced by the hardware or the device brand?\r\n\r\nThank you", "updateAuthor": { "name": "sandrolain", "key": "sandrolain", "displayName": "Sandro Lain", "active": true, "timeZone": "Europe/Rome" }, "created": "2018-06-01T10:34:26.000+0000", "updated": "2018-06-01T10:34:26.000+0000" }, { "id": "438051", "author": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "body": "[~sandrolain]\r\nHello! Sorry for the late answer. Once again I was no successful in reproducing the issue on the Android versions you mentioned. In order to be able to determine whether I can do something on Titanium side about the delay in receiving the event it would be helpful to know some details of the application's/device's state:\r\n - is the application in the foreground/background?\r\n - was the application removed from the task manager before expecting the event?\r\n - is the device locked or not?\r\n - by any chance are there any battery saving/memory optimizing modes set or application running on the device?\r\nThese are things that may affect the update rate of the location of the device and will help me continue troubleshooting the problem.", "updateAuthor": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "created": "2018-06-01T12:42:28.000+0000", "updated": "2018-06-01T12:42:28.000+0000" }, { "id": "438052", "author": { "name": "sandrolain", "key": "sandrolain", "displayName": "Sandro Lain", "active": true, "timeZone": "Europe/Rome" }, "body": "Hello\r\nI report here the use case of the app for its function:\r\n\r\n- The geofencing of the app must take place in the background, but in several tests we have carried out it does not even work in the foreground\r\n- The application has never been removed from the task manager in out tests\r\n- We have tried both with active screen and locked\r\n- In the devices used there are no apps or features that clean the memory or optimize the use of the battery\r\n\r\nIn addition to the already reported devices with which I have personally tested, my client uses the following:\r\n\r\nAsus Zenfone 3 ZE520KL - Android 8.0.0\r\nSamsung Galaxy A3 2017 - Android 8.0.0\r\nHuawei Mediapad M3 Lite 10 - Android 7.0\r\n\r\nAs a comparison order, I configured geofencing notifications in the IFTTT app.\r\nWith the IFTTT app the results are as follows:\r\n\r\n- Asus: IFTTT geofencing does not work\r\n- Samsung: IFTTT geofencing takes place 15 minutes after entering the region\r\n- Huawei: IFTTT geofencing takes place immediately upon entry into the region. In this case the ti.geofence module did not report entry into the region\r\n\r\nThe ti.geofence module sometimes executes the entry event in the region when regions are added when I'am already inside them.\r\n\r\nTo verify that the configuration of the ranges occurred correctly, I have added calls to a my webservice to record when regions are removed, regions are updated, and regions have entered.\r\nThe regions are configured correctly, in the same way as the iOS app, but unlike this, the entry events in the range do not happen.\r\n\r\n\r\n", "updateAuthor": { "name": "sandrolain", "key": "sandrolain", "displayName": "Sandro Lain", "active": true, "timeZone": "Europe/Rome" }, "created": "2018-06-01T13:28:11.000+0000", "updated": "2018-06-01T13:28:11.000+0000" }, { "id": "438060", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-06-01T18:14:20.000+0000", "updated": "2018-06-01T18:14:20.000+0000" }, { "id": "438099", "author": { "name": "sandrolain", "key": "sandrolain", "displayName": "Sandro Lain", "active": true, "timeZone": "Europe/Rome" }, "body": "Hello\r\nThanks for the support.\r\nFrom the indicated link I can not download the zip with the 7.1.2 trial version, dropbox returns not found.", "updateAuthor": { "name": "sandrolain", "key": "sandrolain", "displayName": "Sandro Lain", "active": true, "timeZone": "Europe/Rome" }, "created": "2018-06-04T15:24:37.000+0000", "updated": "2018-06-04T15:24:37.000+0000" }, { "id": "438100", "author": { "name": "sandrolain", "key": "sandrolain", "displayName": "Sandro Lain", "active": true, "timeZone": "Europe/Rome" }, "body": "In some tests I've done today (at the moment without the recommended changes), I get these debug and error messages:\r\n\r\n[DEBUG] \b\b \bGeofenceRemover: CONNECTED to Location Services\r\n[DEBUG] \b\b \bGeofenceRequester: Connected to GoogleApiClient\r\n[DEBUG] \b\b \bGeofenceRemover: Remove GeoFence intent SUCCESS\r\n[ERROR] \b\b \bGeofenceRequester: Add Geofence result FAILURE with code: 1000\r\n[DEBUG] \b\b \bGeofenceModule: (main) [100,112615] GeofenceLocalBroadcastReceiver ACTION_GEOFENCES_REMOVED\r\n[DEBUG] \b\b \bGeofenceModule: (main) [0,112615] GeofenceLocalBroadcastReceiver ACTION_GEOFENCE_ERROR\r\n[ERROR] \b\b \bGeofenceModule: (main) [0,112615] Add Geofence result FAILURE with code: 1000", "updateAuthor": { "name": "sandrolain", "key": "sandrolain", "displayName": "Sandro Lain", "active": true, "timeZone": "Europe/Rome" }, "created": "2018-06-04T16:46:26.000+0000", "updated": "2018-06-04T16:46:26.000+0000" }, { "id": "438104", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~sandrolain],\r\n\r\nRegarding this log message...\r\n{quote}[ERROR] \b\b \bGeofenceRequester: Add Geofence result FAILURE with code: 1000{quote}\r\n\r\nAn error code of {{1000}} is a {{GEOFENCE_NOT_AVAILABLE}} error...\r\nhttps://developers.google.com/android/reference/com/google/android/gms/location/LocationStatusCodes.html#GEOFENCE_NOT_AVAILABLE\r\n\r\nThis can happen if \"Location Services\" is disabled on the device. So, you'll need to go to your device's \"Settings->Location\" screen and make sure location services is enabled. I suspect this might be the cause of the error. In Titanium, you can double check if this is enabled by reading the {{Ti.Geolocation.locationServicesEnabled}} property. If it's {{false}}, then you may need to display a warning to the end-user to enable it for this feature to work.\r\nhttps://docs.appcelerator.com/platform/latest/#!/api/Titanium.Geolocation-property-locationServicesEnabled\r\n\r\nYou should also double check that your app has been granted location permissions. On Android 6.0 and above, the end-user has to grant the app permission. You can enable this yourself under Settings->Apps. But the best solution is to use our {{Ti.Geolocation.requestLocationPermissions()}} API as documented here...\r\nhttps://docs.appcelerator.com/platform/latest/#!/api/Titanium.Geolocation\r\n\r\n", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-06-04T18:26:13.000+0000", "updated": "2018-06-04T18:26:13.000+0000" }, { "id": "438115", "author": { "name": "sandrolain", "key": "sandrolain", "displayName": "Sandro Lain", "active": true, "timeZone": "Europe/Rome" }, "body": "Hello\r\nI tried to verify Ti.Geolocation.locationServicesEnabled.\r\nTi.Geolocation.locationServicesEnabled is TRUE if I first request location permissions, while FALSE is the one I check before requesting location permissions.\r\nIn the first case, Ti.Geolocation.requestLocationPermissions is SUCCESS, and Ti.Geolocation.locationServicesEnabled is TRUE, and I get to create the regions.\r\nIn the device in use, the localization services are active in \"High accuracy (GPS and networks)\" mode, but the error message 1000 appears as shown.\r\nBefore each check, the following error message always appears:\r\n\r\n[ERROR] \b\b \bLocationManager: [LGNSS] Disable_PrivacyLocation_Information [tOperator : OPEN ] , [privacy_check : NA]\r\n\r\n", "updateAuthor": { "name": "sandrolain", "key": "sandrolain", "displayName": "Sandro Lain", "active": true, "timeZone": "Europe/Rome" }, "created": "2018-06-05T07:31:44.000+0000", "updated": "2018-06-05T07:31:44.000+0000" }, { "id": "438117", "author": { "name": "sandrolain", "key": "sandrolain", "displayName": "Sandro Lain", "active": true, "timeZone": "Europe/Rome" }, "body": "The error and the enabling of the services I previously reported refer to an LG device with Android 7.0.\r\nI then tried with another Samsung device with Android 6.0.1, always with permissions enabled, Ti.Geolocation.locationServicesEnabled = TRUE. The last reported error does not appear, the regions are added, but the enterregions event is not executed.", "updateAuthor": { "name": "sandrolain", "key": "sandrolain", "displayName": "Sandro Lain", "active": true, "timeZone": "Europe/Rome" }, "created": "2018-06-05T09:51:57.000+0000", "updated": "2018-06-05T09:51:57.000+0000" }, { "id": "438279", "author": { "name": "sandrolain", "key": "sandrolain", "displayName": "Sandro Lain", "active": true, "timeZone": "Europe/Rome" }, "body": "Hello everyone\r\nThe problem could be due to limitations or other issues with Goole Play Services?", "updateAuthor": { "name": "sandrolain", "key": "sandrolain", "displayName": "Sandro Lain", "active": true, "timeZone": "Europe/Rome" }, "created": "2018-06-11T12:38:18.000+0000", "updated": "2018-06-11T12:38:18.000+0000" }, { "id": "438337", "author": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "body": "[~sandrolain] There is a chance it can cause the problem, yes? Can you share details what limitations or issues you have observed? \r\nYou can now get an SDK with the \"Foreground Service\" support merged from our pre-built SDK list:\r\nhttp://builds.appcelerator.com/#master\r\nAlso you mentioned that you have personally tested the sample code with some of the devices. Can you share details about your set up? Were you using mocking locations or physically moved to the regions defined? If the former - any specifics about the setting up the mocking location can come in hand. Did you notice any relation between the region's size and position, and the different results you got from the module?", "updateAuthor": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "created": "2018-06-12T10:48:26.000+0000", "updated": "2018-06-12T10:48:26.000+0000" }, { "id": "441186", "author": { "name": "sandrolain", "key": "sandrolain", "displayName": "Sandro Lain", "active": true, "timeZone": "Europe/Rome" }, "body": "Hello everyone\r\nI resumed today tests on this app, with the release of SDK 7.3.0 and now on two devices Samsung with Android 5 and 7 geofencing seems to work.\r\nIn the LG device that I mentioned previously, I still find the error:\r\n\r\n[ERROR] \b\b \bGeofenceRequester: Add Geofence result FAILURE with code: 1000\r\n...\r\n\r\nThe tests I carried out are all on the field with real simulations (moving with my car).", "updateAuthor": { "name": "sandrolain", "key": "sandrolain", "displayName": "Sandro Lain", "active": true, "timeZone": "Europe/Rome" }, "created": "2018-08-29T13:56:48.000+0000", "updated": "2018-08-29T13:56:48.000+0000" }, { "id": "441192", "author": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "body": "[~sandrolain] \r\nAccording to these status codes:\r\nhttps://developers.google.com/android/reference/com/google/android/gms/location/GeofenceStatusCodes.html#GEOFENCE_NOT_AVAILABLE\r\nthat value may be received due to location access not being enabled. \r\nIs there a chance this may be the case with this device?", "updateAuthor": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "created": "2018-08-29T15:08:53.000+0000", "updated": "2018-08-29T15:08:53.000+0000" }, { "id": "441221", "author": { "name": "sandrolain", "key": "sandrolain", "displayName": "Sandro Lain", "active": true, "timeZone": "Europe/Rome" }, "body": "Location access is enabled on device (GPS + mobile + wifi) and permissions are enabled for the app. I think at this point it may be a system problem. I will reset the phone and then I will let you know.", "updateAuthor": { "name": "sandrolain", "key": "sandrolain", "displayName": "Sandro Lain", "active": true, "timeZone": "Europe/Rome" }, "created": "2018-08-30T06:37:05.000+0000", "updated": "2018-08-30T06:37:05.000+0000" }, { "id": "441606", "author": { "name": "sandrolain", "key": "sandrolain", "displayName": "Sandro Lain", "active": true, "timeZone": "Europe/Rome" }, "body": "Hello\r\nI was able to reset the LG phone to factory and now the geofencing seems to work properly. I could verify that with Android 5.0 - 7.0 the operation happens both foreground and background, while with Android 8.0 it seems not to work in the background. I have seen that it is necessary to implement a foreground service but I have difficulty understanding which is the correct way. Is there any example?\r\nThank you", "updateAuthor": { "name": "sandrolain", "key": "sandrolain", "displayName": "Sandro Lain", "active": true, "timeZone": "Europe/Rome" }, "created": "2018-09-17T06:41:46.000+0000", "updated": "2018-09-17T06:41:46.000+0000" }, { "id": "441639", "author": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "body": "[~sandrolain]\r\nIn the PR for the foreground support there is a sample app demonstrating foreground service with device's location. Check the *Test:* paragraph:\r\nhttps://github.com/appcelerator/titanium_mobile/pull/10076\r\nIt has a list of steps and code samples for a working example. \r\n", "updateAuthor": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "created": "2018-09-18T08:18:47.000+0000", "updated": "2018-09-18T08:18:47.000+0000" }, { "id": "453747", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "Just to make sure that people will perhaps find a solution when finding this older ticket:\r\n\r\n*About the FAILURE 1000:*\r\nI had the same and everything was setup correctly (Android 10). BUT I've disabled this setting on my phone because I don't want to send my location to google:\r\n!https://www.androidpolice.com/wp-content/uploads/2018/03/nexus2cee_android-p-location-settings.png!\r\n(Location accuracy improvements)\r\n\r\nTurns out: it is needed to use geofencing! That's why the user above had it working when the phone was reseted. As soons as I turn it back on the failure code 1000 is gone and my fence is found.", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2020-01-19T14:34:53.000+0000", "updated": "2020-01-19T14:34:53.000+0000" } ], "maxResults": 26, "total": 26, "startAt": 0 } } }