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

Ionic cordova iOS app crash if location service is not enabled #291

Open
SumeetHindinkeri opened this issue Jul 23, 2021 · 0 comments
Open

Comments

@SumeetHindinkeri
Copy link

Description
Hi Dominik Moritz,
I am facing below error with this module on Ionic cordova iOS app when the location permission is denied and the app crashes. When I uninstall the module and comment out leaflet.locatecontrol stuff in my project the app works perfectly fine.

Error
*** Terminating app due to uncaught exception 'NSGenericException', reason: '*** Collection <__NSDictionaryM: 0x283ed88e0> was mutated while being enumerated.'
terminating with uncaught exception of type NSException

Modules tried out with
leaflet : 1.6.0 /1.7.1
@types/leaflet: 1.5.12 / 1.7.4
leaflet.locatecontrol: 0.72.0 / 0.74.0
@types/leaflet.locatecontrol: 0.60.7

Desired Behaviour Want to Achieve
leaflet.locatecontrol should not crash the app when the location permission is denied.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant