Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26454] Reverse geocoding freeze the app when manualMode is true

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionInvalid
Resolution Date2018-11-29T23:52:00.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
Labelsandroid, gps, manualmode
ReporterPietro Granati
AssigneeGary Mathews
Created2018-09-27T10:35:42.000+0000
Updated2018-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

FileDateSize
index.js2018-09-27T10:35:00.000+00001685

Comments

  1. Pietro Granati 2018-10-08

    Any news?
  2. Sharif AbuDarda 2018-10-08

    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.
  3. Pietro Granati 2018-10-09

    Jus remove that line.
  4. Sharif AbuDarda 2018-10-14

    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.
  5. Pietro Granati 2018-10-25

    No news here?
  6. Gary Mathews 2018-11-29

    [~Pietro] Your accuracy filter is set too low, change accuracy: 10 into something greater, such as accuracy: 30. By setting accuracy too low you are preventing location updates from passing your filter. This prevents the callback being fired and the reverseGeocoder.
  7. Pietro Granati 2018-11-30

    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?

JSON Source