Repository navigation
Made bluetooth an instance of PermissionWithService - #942
ChopinDavid wants to merge 2 commits into
Conversation
Codecov ReportBase: 86.51% // Head: 86.51% // No change to project coverage 👍
Additional details and impacted files@@ Coverage Diff @@
## master #942 +/- ##
=======================================
Coverage 86.51% 86.51%
=======================================
Files 6 6
Lines 89 89
=======================================
Hits 77 77
Misses 12 12
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
|
Any chance of this getting pulled in? @Baseflow |
|
Hi @ChopinDavid, thank you for taking the time to create this PR for the permission handler! First and foremost, my apologies for the late reply. We had a change in priorities for some months, which meant we were unable to keep up with issues and PRs such as yourself's. Luckily, that changed, and we can dedicate time to maintaining plugins such as the permission handler once again! As I assumed that you might have moved on to different projects, I have pulled your code and made the necessary changes (mainly updating the version number). You can find these in #1099. |
|
Thanks again @ChopinDavid! We managed to land the feature just now. I will close this PR. The feature is now available on the latest version of the plugin. To pull it in, just run |
Closes #773.
✨ What kind of change does this PR introduce? (Bug fix, feature, docs update...)
This allows users to access
Permission.bluetooth.serviceStatusUsers can only access
Permission.bluetooth.status🆕 What is the new behavior (if this is a feature change)?
Users can access both
Permission.bluetooth.statusandPermission.bluetooth.serviceStatus💥 Does this PR introduce a breaking change?
Not that I know of
🐛 Recommendations for testing
Try determining iOS's
CBManagerStatePoweredOnviaPermission.bluetooth.serviceStatus📝 Links to relevant issues/docs
On
BluetoothPermissionStrategy.mline 36, there exists a means to view the iOS device'sCBManagerStatePoweredOn. However, there doesn't appear to be a way to ever actually determine this status from the Flutter side as onlyPermissionWithServices can getserviceStatus(permission_handler.dartline 97).bluetoothis an instance ofPermission, notPermissionWithService, thus we can never invokeserviceStatus, meaning we will never invoke acheckServiceStatusmethod to native iOS with bluetooth permission group.🤔 Checklist before submitting
master.