[TIMOB-27475] iOS: Map permission is not correct on specific iOS devices
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | None |
Status | Closed |
Resolution | Won't Fix |
Resolution Date | 2019-11-14T22:21:10.000+0000 |
Affected Version/s | Release 8.2.0 |
Fix Version/s | n/a |
Components | n/a |
Labels | n/a |
Reporter | Riduanul Islam |
Assignee | Samir Mohammed |
Created | 2019-10-16T20:15:55.000+0000 |
Updated | 2019-11-14T22:21:10.000+0000 |
Description
After running following code:
Ti.Geolocation.requestLocationPermissions(Ti.Geolocation.AUTHORIZATION_WHEN_IN_USE,function(e){
Ti.API.info("RESPONSE = "+ JSON.stringify(e));
});
I am getting following response:
[INFO] RESPONSE = {"code":1,"error":"The requested permissions do not match the selected permission (the user likely declined AUTHORIZATION_ALWAYS permissions) in iOS 11+","success":false,"authorizationStatus":3}
After checking which permission was granted it appears that Ti.Geolocation.AUTHORIZATION_ALWAYS was granted instead of Ti.Geolocation.AUTHORIZATION_WHEN_IN_USE. This needs to be fixed.
*Test environment*: SDK- 8.2.0.GA
Appcelerator Command-Line Interface, version 7.1.1
Reproducible device: iPhone SE and iPhone 5C on IOS 10.3.3
I have tested on following device but cannot reproduce it:
iPhone 6+ (iOS 12.4.2) and iPod 5S(9.3.3)
*Note*: We have no iPhone SE and iPhone 5C devices available, so we failed to check this on those devices.
Attachments
File | Date | Size |
---|---|---|
Screenshot 2019-10-29 at 16.41.57.png | 2019-10-29T17:29:20.000+0000 | 47109 |
Unable to reproduce this bug. Also observed another issue in regard to the permission failing to pop up when app is reinstalled (without uninstalling app first) and launched on 3 of the devices i.e. iOS versions 12.4, 11.0.3 and 11.4 but popped up as expected for iOS 13.0 device. See attached console message after failing to pop up. !Screenshot 2019-10-29 at 16.41.57.png|thumbnail! *Test Environment:* SDK Ver: 8.2.0.GA and 8.3.0.v20191028152746 Xcode Ver: Xcode 11.1 Appc NPM: 4.2.15 Appc CLI: 7.1.1 Ti CLI Ver: 5.2.1 Node Ver: 10.16.3 NPM Ver: 6.9.0 *Devices tested on:* iOS versions: 12.4, 11.0.3, 11.4 and 13.0
[~ahutton] When I delete it and install a new one the permission shows as expected. It only doesn't show when app is already installed on device and reinstalled without deletion. I observed this issue on 3 of the devices with iOS versions: 12.4, 11.0.3 and 11.4 but not on 13.0
[~ahutton] Okay. I get it.
Closing per support comments.