Titanium JIRA Archive
Appcelerator Community (AC)

[AC-5058] Android: Ti.Geolocation.getCurrentPosition may crash

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNeeds more info
Resolution Date2017-08-01T20:26:16.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
LabelsAndroid, Geolocation
Reporterhakaniemi
AssigneeShak Hossain
Created2017-06-28T05:52:16.000+0000
Updated2017-08-01T20:26:16.000+0000

Description

On Android, Ti.Geolocation.getCurrentPosition may crash. LocationResults.success is true, but app will crash then.

Comments

  1. Aminul Islam 2017-06-28

    Hi, Thanks for reaching us. What version of Android devices do you have? Could you please add more details about your environment. Do you have some test case to demonstrate what you are trying? We can offer you to look into your code and help to identify errors. Best Aminul
  2. Aminul Islam 2017-06-28

    Hi, We have tested this issue with latest SDK 6.1.0.GA and 6.1.1.GA on Android 6.0(HTC one m8). So far we have been unable to reproduce this issue. Log
       [INFO] :   GetCurrentPosition returned{"code":0,"provider":{"power":1,"name":"network","accuracy":2},"coords":{"altitude":0,"speed":0,"longitude":90.3461724,"heading":0,"latitude":23.7643312,"timestamp":1498662778989,"altitudeAccuracy":null,"accuracy":116.0999984741211},"success":true}
       
    Test Environment
       Operating System
         Name                        = Mac OS X
         Version                     = 10.11.6
         Architecture                = 64bit
         # CPUs                      = 4
         Memory                      = 8589934592
       Node.js
         Node.js Version             = 4.4.4
         npm Version                 = 2.15.1
       Titanium CLI
         CLI Version                 = 5.0.14
       Titanium SDK
         SDK Version                 = 6.1.0.GA
       
  3. Sharif AbuDarda 2017-07-03

    Hello, We have not able to reproduce the issue. Could you please add more details about your environment? Also what device are you testing on?

JSON Source