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

iOS: allowsBackgroundLocationUpdates should be optional #40

Open
thomasostfeld opened this issue Mar 5, 2020 · 1 comment
Open

iOS: allowsBackgroundLocationUpdates should be optional #40

thomasostfeld opened this issue Mar 5, 2020 · 1 comment

Comments

@thomasostfeld
Copy link

I'm using this great plugin for geofencing in my app. Geofencing is the only location service that is used in the background by my app, no location updates or similiar things.

The app got rejected by Apple because it included the background location mode as a capability without using any background location features.
Since the plugin sets allowsBackgroundLocationUpdates to true, the app crashes right away when you don't include the background mode.

Removing the background mode and not setting allowsBackgroundLocationUpdates actually works with region monitoring and even launches the app in the background after being swiped off.
Apple's documentation is very misleading and lacking in that regard (like usual) in my opinion, I was quite surprised by that and thought the background mode was obvious for this usecase.

To prevent apps from being rejected, allowsBackgroundLocationUpdates should probably be controlled by a parameter in the GeofencingManager.initialize() method.

@bkonyi
Copy link
Owner

bkonyi commented Apr 13, 2020

Ah, that's a good point, didn't realize that was an issue. I can add this eventually, but if you'd like to submit a pull request I'd be happy to review / accept it :-).

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

2 participants