Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19071] Ti.Geolocation.getCurrentPosition can have success:true and error at the same time with LiveView

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionDuplicate
Resolution Date2016-01-08T19:35:38.000+0000
Affected Version/sRelease 4.0.0
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterFokke Zandbergen
AssigneeEric Merriman
Created2015-06-25T07:15:33.000+0000
Updated2017-03-22T22:27:50.000+0000

Description

In iOS Simulator (iOS 8.3), running the following code:
Ti.Geolocation.getCurrentPosition(function (e) {
  console.log(e);
});
Sometimes gives me the following e when I have LiveView enabled:
[INFO]  {
[INFO]      code = 0;
[INFO]      error = "The operation couldn\U2019t be completed. (kCLErrorDomain error 0.)";
[INFO]      source = "[object GeolocationModule]";
[INFO]      success = 1;
[INFO]      type = location;
[INFO]  }
This has 2 problems:

The error itself.

The fact that success = 1, while I'd expect it to be 0.

Comments

  1. Fokke Zandbergen 2016-01-08

    This is not just with LiveView, so closing this in favour of TIMOB-20046
  2. Lee Morris 2017-03-22

    Closing ticket as duplicate and links to the related ticket have been provided above.

JSON Source