Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2569] Expose geolocation error codes

GitHub Issuen/a
TypeNew Feature
PriorityTrivial
StatusReopened
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sRelease 1.6.0 M01
ComponentsAndroid
Labelserror, feature, geolocation, ios, release-1.6.0
ReporterStephen Tramer
AssigneeUnknown
Created2011-04-15T03:23:04.000+0000
Updated2018-08-02T18:39:51.000+0000

Description

Exactly as described. Add a 'code' property to success=false callback responses on geolocation, and expose the internal error codes. In particular this can be used to detect when an app has been denied access without the new 'authorization' property in 4.2 being used.

Reopened due to request for same property on android.

Comments

  1. Jeff Haynie 2011-04-15

    (from [124a2b5edc6a40762babeefd0dfb07df07b6c644]) [#2569 state:fixed-in-qa] Exposed error codes on failure and error code constants from geolocation. https://github.com/appcelerator/titanium_mobile/commit/124a2b5edc6a40762babeefd0dfb07df07b6c644"> https://github.com/appcelerator/titanium_mobile/commit/124a2b5edc6a...

  2. Don Thorp 2011-04-15

    Was pushed to master, not 1_5_X. Correcting milestone.

  3. Thomas Huelbert 2011-04-15

    using ks with geo disabled, 3.1.3 and 4.2.1 iphone 3g and 4gt touch
    [INFO] Titanium SDK version: 1.6.0 (01/12/11 09:38 db09d1e)

  4. Abhinav Tyagi 2013-01-31

    Shouldn't this be done for android too? On android we get error codes 0,2,3,5 from here https://github.com/appcelerator/titanium_mobile/blob/master/android/modules/geolocation/src/java/ti/modules/titanium/geolocation/android/LocationProviderProxy.java And the error codes ERROR_DENIED,ERROR_NETWORK.. etc remain undefined for android.
  5. Carter Lathrop 2013-02-12

    Request for the same fix on android.

JSON Source