Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS: Requesting bluetooth permissions causes API misuse error #264

Closed
garrottkai opened this issue Jul 25, 2018 · 3 comments
Closed

iOS: Requesting bluetooth permissions causes API misuse error #264

garrottkai opened this issue Jul 25, 2018 · 3 comments

Comments

@garrottkai
Copy link

Describe your environment

  • React-Native version: 0.55.4
  • Platform: iOS
  • Device: iPad (2018)
  • OS version: 11.4
  • react-native-permissions version: 1.1.1
  • Devtools: Xcode 9.4.1

How to repeat issue and example

I'm calling Permissions.request('bluetooth').... and it immediately returns undetermined without showing the dialog. In Xcode, I get the following error:
[CoreBluetooth] API MISUSE: <CBPeripheralManager: 0x1c02cf3b0> can only accept this command while in the powered on state
indicating that a connection attempt is made before peripheralManagerDidUpdateState has signaled that CBPeripheralManager is ready.

@philipaarseth
Copy link

Me too, anyone found a solution to this??

@zoontek
Copy link
Owner

zoontek commented Sep 28, 2019

I am closing this since this issue does not exists anymore with the 2.0.0 release.

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

No branches or pull requests

4 participants
@zoontek @garrottkai @philipaarseth and others