Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

isLocationAuthorized return error on iOS13 #406

Closed
5 tasks done
angelofan opened this issue Jul 22, 2020 · 6 comments
Closed
5 tasks done

isLocationAuthorized return error on iOS13 #406

angelofan opened this issue Jul 22, 2020 · 6 comments
Labels
bug Something isn't working properly ios relates to iOS platform runtime issue An issue related to app runtime

Comments

@angelofan
Copy link

angelofan commented Jul 22, 2020

Bug report

CHECKLIST

  • I have reproduced the issue using the example project or provided the necessary information to reproduce the issue.
  • I have checked that no similar issues (open or closed) already exist.

Current behavior:

Gettiing the following error after calling 'isLocationAuthorized' method on iOS 13 device:

[CLLocationManager authorizationStatus]:
unrecognized selector sent to instance 0x283b0a190

Expected behavior:

Return successful callback

Steps to reproduce:

Run example project on iOS 13

Screenshots

image

Environment information

  • Cordova CLI version: 9.0.0
  • Cordova platform version: [email protected]
  • Plugins & versions installed in project (including this plugin)
cordova-open-native-settings 1.5.2 "Native settings"
cordova-plugin-advanced-http 2.0.6 "Advanced HTTP plugin"
cordova-plugin-androidx 2.0.0 "cordova-plugin-androidx"
cordova-plugin-androidx-adapter 1.1.1 "cordova-plugin-androidx-adapter"
cordova-plugin-app-version 0.1.9 "AppVersion"
cordova-plugin-badge 0.8.8 "Badge"
cordova-plugin-ble-central 1.2.5 "BLE"
cordova-plugin-chrome-apps-common 1.0.7 "Chrome Apps Common Utils"
cordova-plugin-chrome-apps-iossocketscommon 1.0.2 "Chrome Apps iOS Sockets Common"
cordova-plugin-chrome-apps-sockets-tcp 1.3.7 "Chrome Apps Sockets TCP API"
cordova-plugin-device 2.0.3 "Device"
cordova-plugin-esptouch 1.0.8 "Cordova esptouch"
cordova-plugin-file 6.0.1 "File"
cordova-plugin-inappbrowser 3.2.0 "InAppBrowser"
cordova-plugin-ionic-keyboard 2.1.3 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 2.4.0 "cordova-plugin-ionic-webview"
cordova-plugin-ios-localized-strings 1.0.6 "Cordova iOS Localized Strings"
cordova-plugin-localization-strings 3.1.0 "Localization"
cordova-plugin-nativeaudio 3.0.9 "Cordova Native Audio"
cordova-plugin-nativeclicksound 0.0.4 "Native Click Sound"
cordova-plugin-nativestorage 2.3.2 "NativeStorage"
cordova-plugin-network-information 2.0.1 "Network Information"
cordova-plugin-networkinterface 2.0.0 "NetworkInterface"
cordova-plugin-ping 0.5.0 "Ping"
cordova-plugin-screen-orientation 3.0.1 "Screen Orientation"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-statusbar 2.4.3 "StatusBar"
cordova-plugin-vibration 3.1.0 "Vibration"
cordova-plugin-whitelist 1.3.3 "Whitelist"
cordova-support-google-services 1.3.2 "cordova-support-google-services"
cordova.plugin.HttpAes256Key16 1.0.2 "HttpAes256Key16"
cordova.plugins.diagnostic 6.0.0 "Diagnostic"
es6-promise-plugin 4.1.0 "Promise"
phonegap-plugin-multidex 1.0.0 "Multidex"
phonegap-plugin-push 2.3.0 "PushPlugin"
wifiwizard2 3.1.1 "WifiWizard2"
  • Dev machine OS and version
ProductName:	Mac OS X
ProductVersion:	10.15.5
BuildVersion:	19F101

Runtime issue

  • Device details: iPhone 7
  • OS details: iOS 13.5.1
@angelofan angelofan changed the title requestLocationAuthorization error on iOS13 authorizationStatus error on iOS13 Jul 22, 2020
@angelofan angelofan changed the title authorizationStatus error on iOS13 isLocationAuthorized return error on iOS13 Jul 22, 2020
@angelofan
Copy link
Author

It runs fine on the iPhone 8 simulator of iOS 13.6, and it seems like a bug in iOS 13.5.1.

@angelofan
Copy link
Author

I upgraded the system version of the real device with this problem to iOS 13.6. The problem still exists. So far I am not sure what caused this error.

I will use more colleagues’ iPhones to test this problem.

@angelofan
Copy link
Author

I ran the sample project on iOS 13.4.1 on another colleague’s iPhone 11, and still had the same problem, unable to detect location authorization status.

@angelofan
Copy link
Author

angelofan commented Jul 23, 2020

After I removed the plug-in and reinstalled version 5.0.2, they all worked normally.

It always works normally in the simulator, and calling isLocationAuthorized in iOS 13 on a real device will return an error.

[CLLocationManager authorizationStatus]:
unrecognized selector sent to instance 0x283b0a190

@dpa99c
Copy link
Owner

dpa99c commented Jul 23, 2020

Thanks for reporting - I must have missed this bug in regression testing because I tested in the Simulator rather than on a device.
I'll investigate and fix in a patch version.

@dpa99c dpa99c added bug Something isn't working properly investigate Issue requires investigation ios relates to iOS platform runtime issue An issue related to app runtime labels Jul 23, 2020
@dpa99c dpa99c closed this as completed in 966261f Jul 23, 2020
@dpa99c
Copy link
Owner

dpa99c commented Jul 23, 2020

The above fix has been published to npm in patch version 6.0.1 - this should resolve your issue but let me know if you still encounter problems.

@dpa99c dpa99c removed the investigate Issue requires investigation label Jul 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working properly ios relates to iOS platform runtime issue An issue related to app runtime
Projects
None yet
Development

No branches or pull requests

2 participants