Skip to content

Fix/ios bt prompt lazy init#23

Merged
ByteZhang1024 merged 2 commits into
mainfrom
fix/ios-bt-prompt-lazy-init
Jun 9, 2026
Merged

Fix/ios bt prompt lazy init#23
ByteZhang1024 merged 2 commits into
mainfrom
fix/ios-bt-prompt-lazy-init

Conversation

@ByteZhang1024

Copy link
Copy Markdown
Contributor

No description provided.

Previously the manager was allocated in init(), which RN's bridge calls the
first time JS touches NativeModules.BleUtilsModule. That allocation triggered
the iOS "Turn on Bluetooth" system dialog on every app launch when BT was off,
even if the user never entered a hardware flow.

Allocate lazily via ensureManager() on first checkState/getConnectedPeripherals
call instead.
@revan-zhang

revan-zhang commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@ByteZhang1024 ByteZhang1024 merged commit 9eb9266 into main Jun 9, 2026
6 checks passed
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

Successfully merging this pull request may close these issues.

3 participants