[TIMOB-26454] Reverse geocoding freeze the app when manualMode is true
GitHub Issue | n/a |
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2018-11-29T23:52:00.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Android |
Labels | android, gps, manualmode |
Reporter | Pietro Granati |
Assignee | Gary Mathews |
Created | 2018-09-27T10:35:42.000+0000 |
Updated | 2018-11-30T09:48:25.000+0000 |
Description
I was implementing the Titanium reverse geocoding in my app, on iOS I have had no problems so I also do it on android, suddenly app freeze.
But I think I found the problem:
When Ti.Geolocation.Android.manualMode = true;
Titanium.Geolocation.reverseGeocoder not works and freeze the app.
I attach my index file where you can see the //commented line for manual mode, decomment it and see after first location event everything freeze
Attachments
File | Date | Size |
index.js | 2018-09-27T10:35:00.000+0000 | 1685 |
Any news?
Hello, I tried to test your sample code for reverse geocoding. There is a problem with the code, I got this error [ERROR] V8Exception: Exception occurred at /alloy/controllers/index.js:86: Uncaught ReferenceError: monitorLocation is not defined Please provide the full reproducible code. Thanks.
Jus remove that line.
Hello, I was able to reproduce the issue on Android 8.1 device using SDK 7.4.0.GA. With manualMode=true there is no log shows on the console about the location info. without the manualMode the location info is shown in the console after app opens up. Thanks.
No news here?
[~Pietro] Your accuracy filter is set too low, change
accuracy: 10
into something greater, such asaccuracy: 30
. By setting accuracy too low you are preventing location updates from passing your filter. This prevents the callback being fired and thereverseGeocoder
.Hi Gary and thank you for the answer, but I need that accuracy for the purpose of the app. So, you're telling me that reversegeocode CRASH the app if the accuracy is too low?