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

Fixes dropped parameter on requestPermission #43

Closed filipproch closed 4 years ago

filipproch commented 4 years ago

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

Bug fix

:arrow_heading_down: What is the current behavior?

The last version is ignoring the "permission level" parameter on Android

:new: What is the new behavior (if this is a feature change)?

The library will respect the parameter (as on iOS)

:boom: Does this PR introduce a breaking change?

No

:bug: Recommendations for testing

Change the parameter to "whileInUse", call requestPermission and it will anyway do automatic detection based on manifest.

:memo: Links to relevant issues/docs

I think its related to https://github.com/Baseflow/flutter-permission-plugins/issues/41

:thinking: Checklist before submitting