[TIMOB-2569] Expose geolocation error codes
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Trivial |
Status | Reopened |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | Release 1.6.0 M01 |
Components | Android |
Labels | error, feature, geolocation, ios, release-1.6.0 |
Reporter | Stephen Tramer |
Assignee | Unknown |
Created | 2011-04-15T03:23:04.000+0000 |
Updated | 2018-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.
(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...
Was pushed to master, not 1_5_X. Correcting milestone.
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)
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.
Request for the same fix on android.