Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-27475] iOS: Map permission is not correct on specific iOS devices

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionWon't Fix
Resolution Date2019-11-14T22:21:10.000+0000
Affected Version/sRelease 8.2.0
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterRiduanul Islam
AssigneeSamir Mohammed
Created2019-10-16T20:15:55.000+0000
Updated2019-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

FileDateSize
Screenshot 2019-10-29 at 16.41.57.png2019-10-29T17:29:20.000+000047109

Comments

  1. Ebenezer Boateng 2019-10-29

    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
  2. Ebenezer Boateng 2019-10-30

    [~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
  3. Ebenezer Boateng 2019-10-31

    [~ahutton] Okay. I get it.
  4. Alan Hutton 2019-11-14

    Closing per support comments.

JSON Source