Baseflow / flutter-permission-plugins

This repo contains a collection of permission related Flutter plugins which can be used to request permissions to access device resources in a cross-platform way.
https://baseflow.com
MIT License
52 stars 34 forks source link

Enable location service availability stream on Android #1

Closed Lootwig closed 5 years ago

Lootwig commented 5 years ago

:sparkles: What kind of change does this PR introduce? (Bug fix, feature, docs update...)

Access to streamed location service enabled/disabled state.

:boom: Does this PR introduce a breaking change?

Nope.

:bug: Recommendations for testing

Only Android side implemented.

Lootwig commented 5 years ago

A little confused about the project duplicate flutter-permission-handlers <-> flutter-permission-handler. But this is the project referenced in geolocator, so I thought I'd add the feature in here.

mvanbeusekom commented 5 years ago

Regarding your confusion, you are right it is confusing. The idea is that we split up all permissions that are current packed into the flutter-permission-handler plugin into separate packages. This is because the current version gives a lot of problems on iOS, since we touch all SDKs people using the plugin need to add all permissions to their apps Info.plist (and even then we get reports of Apple rejecting the App).

So to solve this problem we will split up all permissions into their own packages. When this is finished we will stop support on the flutter-permission-handler.

aytunch commented 3 years ago

@mvanbeusekom and @Lootwig thanks for this PR. This is the only way we were able to recognize user opening the android status bar and toggling location services. Afaik iOS has something similar to location services. But this PR is only for Android. Are there any plans on supporting iOS as well? For now, we are limiting this stream to only Android platform.