-
-
Notifications
You must be signed in to change notification settings - Fork 817
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
Bluetooth request does not ask user and send denied response on iOS 12.4.2 #507
Comments
Hi. Did you check the "Bluetooth peripheral" capability in Xcode too? |
Hi, Yes, these ones are checked :
|
@KristenGarnier Could you try 2.1.4 to check if the version 2.1.5 did not introduce a regression? |
@zoontek We were using version 2.1.0 before, and it was not working either But i will try on version 2.1.4 next time, see if it works there |
I'm having exactly the same issue with version 2.1.2 and iOS version 12.4.8. The bluetooth peripheral capability is ticked in Xcode. |
I've done some more research, it looks like this is not a bug in react-native-permissions. The problem is explained here: #458 (comment)
@KristenGarnier you said you had Uses Bluetooth LE accessories checked, but didn't mention Acts as a Bluetooth LE accessory. This is probably the source of the problem. You can see the source code for that For iOS 13, it uses I would recommend the solution given in #458 (comment). If you only want to act as a central on iOS<=12, there is no need to request any bluetooth permissions at all. Edit: If |
Hi @bwindsor, thanks for your explaination ! That was quite confusing on our part and felt a bit like a "hack", I guess we are used to asking for permissions everywhere (which is a good thing IMO) Still, there is maybe a need for this to be documented somewhere, so people don't end up confused as we were discovering this weird behaviour. If someone can point me to where it would make sens to belong, i would be happy to document this findings 😄 Again thanks for your time ! |
That's probably the best solution. I'll try to write a permission handler for it soon. |
@bwindsor thank you for your exporering ! |
any update on the bluetooth-central handler? |
https://github.com/zoontek/react-native-permissions/pulls?q=is%3Apr+is%3Aopen+bluetooth Looks like zero PRs in the queue |
Gosh no @zxar7 I performed a trivial search here and saw no activity. Did you do that? Or propose a PR? I don't see a PR from you. I guess no updates. People in the future: "do the work and propose a PR" is the short answer to "are there any updates?" |
Bug report
Summary
Does not prompt the user for request when demanding the bluetooth permission on iphone 6.
iOs version 12.4.2
When requesting the permissions with everything setup in .plist and pods it keeps returning 'denied' even tho the user has never seen bluetooth prompt.
The same configuration works fine with newer iOS version.
Also tested on fresh app, does not work with iOS 12 on version 2, but does on version 1
We also chained multiple promises to ask for permissions, but always get "denied"
Environment info
react-native-permissions version : 2.2.0
react-native info
output:Library version: x.x.x
Steps to reproduce
Describe what you expected to happen:
Reproducible sample code
The text was updated successfully, but these errors were encountered: