Skip to content
This repository has been archived by the owner on Jun 5, 2023. It is now read-only.

Request permission only when called by js #32

Closed
wants to merge 1 commit into from

Conversation

anees17861
Copy link
Contributor

The library initialised CBCentralManager on module init which inits directly in application didFinishLaunching. This caused bluetooth permission to pop up the moment app is launched. This is now avoided by initialising CBCentralManager only when js side calls a module function for the first time. Please note that this change will give state as "Unknown" on the first getState() call

The library initialised CBCentralManager on module init which inits directly in application didFinishLaunching. This caused bluetooth permission to pop up the moment app is launched. This is now avoided by initialising CBCentralManager only when js side calls a module function for the first time
@patlux patlux linked an issue Jan 14, 2021 that may be closed by this pull request
@patlux patlux added the enhancement New feature or request label Jan 14, 2021
@patlux patlux self-assigned this Jan 14, 2021
@patlux
Copy link
Owner

patlux commented Feb 6, 2021

Released in v1.3.1

@patlux patlux closed this Feb 6, 2021
@patlux
Copy link
Owner

patlux commented Feb 6, 2021

Sorry for the delay. Had to fix the "Unknown" state before releasing it to avoid a breaking change.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Is there a way to delay asking the user for BT permission
2 participants