[Bug]: Bluetooth Nearby Connections fails unconditionally on Android 12 and below ("no permission granted")
@jShubh-AD is already working on this.
Since Nov 20, 2026.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 74/100
Research direction
Open the BluetoothTransportService and read ensurePermissions(), where Permission.nearbyWifiDevices is requested alongside the Bluetooth permissions and the results are collapsed with statuses.values.every(...). Check how the service can learn the Android API level (the project's permission_handler setup and any device-info dependency in pubspec.yaml) so that nearbyWifiDevices is only requested on API 33+. Done means pairing succeeds on an API 31/32 emulator as well as on Android 13+, with the permission map no longer failing on older devices.
Written by the indexing model from the issue text.
Description
Bug Description
In BluetoothTransportService.ensurePermissions(), runtime permissions are requested indiscriminately without checking the device's Android SDK version. Specifically, Permission.nearbyWifiDevices is requested unconditionally across all Android versions.
Because NEARBY_WIFI_DEVICES was only introduced in Android 13 (API 33), requesting it on Android 12 (API 31/32) or Android 11 and below causes permission_handler to return PermissionStatus.denied. As a result, statuses.values.every(...) evaluates to false, rendering Bluetooth pairing completely unusable on Android
≤ 12.
Steps to Reproduce
- Run the app on an Android 12 device or emulator (API 31 or 32).
- Navigate to Invite Friends or any screen initiating Bluetooth discovery/advertising.
- Toggle on Bluetooth pairing.
- When prompted by the system, tap "Allow" / "While using the app".
- Expected: Bluetooth advertising/discovery starts.Actual: Fails immediately with BluetoothPermissionDenied / "no permission granted".
Logs and Screenshots
Environment Details
OS: Android version ≤ 12
App Version: 1.0.2+3
Branch: dev
Flutter Version: 3.44.0 (or 3.44.2)
Dart SDK: 3.12.0
Impact
Critical - Application is unusable
Code of Conduct
- I have joined the Discord server and will post updates there
- I have searched existing issues to avoid duplicates
- Dominant language
- Dart
- Stars
- 20
- Forks
- 41
- Avg merge
- 3d 12h
- Merged PRs (30d)
- 2
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from StabilityNexus/Zplit
-
[GOOD FIRST ISSUE]: ProfileScreen settings tiles do not display their leading iconsPossibly taken A pull request linked to this issue is open or already merged. Opengood first issue
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
StabilityNexus/Zplit#77 · 1 comment ·
-
[GOOD FIRST ISSUE] [MINOR BUG]: Website uses default starter favicon instead of official Zplit logoPossibly taken @NguyenDinhKhoi213 claimed this today. Opengood first issue
Difficulty 1/5 1-3 hours Newbie friendliness 82/100
StabilityNexus/Zplit#73 · 1 comment ·
-
[FEATURE]: Enhancement of Onboarding Screen and Low Res AssetsPossibly taken A pull request linked to this issue is open or already merged. Openenhancement
Difficulty 3/5 1-2 days Newbie friendliness 61/100
StabilityNexus/Zplit#75 · 2 comments ·
-
[GOOD FIRST ISSUE]: Documentation Cleanup - Addition of Contribution.mdPossibly taken @Logic769 claimed this 24 days ago. Opengood first issue
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
StabilityNexus/Zplit#64 · 2 comments ·
-
gsoc
Difficulty 4/5 3-5 days Newbie friendliness 48/100
StabilityNexus/Zplit#56 ·
All issues in StabilityNexus/Zplit
Similar issues
-
BoxShadow.lerp returns the wrong blur style at t = 0 or t = 1Possibly taken @ArtemChikolaev claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
Maintainers usually reply within 1 day
-
[intl_translation] --flutter codegen emits if (dart.library.js)Possibly taken @kevmoo claimed this today. Opentype-bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 20 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
AppFlowy-IO/AppFlowy#9147 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 1/5 Under an hour Newbie friendliness 62/100
ccch1mneyyy/dsh-Go#1682 ·
Maintainers usually reply within 1 day