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] App not requesting permission #1275

Open
barakataboujreich opened this issue Oct 18, 2024 · 0 comments
Open

[IOS] App not requesting permission #1275

barakataboujreich opened this issue Oct 18, 2024 · 0 comments

Comments

@barakataboujreich
Copy link

Before open an issue

  • Check the closed issues, your question maybe is not new.
  • We can't debug or reproduce hardware issue.
  • If the library is not working 99% you did something wrong, in the code, installation or in the phone permissions.

Describe the bug
A user using Iphone 14 with IOS 17 reported that the app is not requesting permission for bluetooth and getting blocked by the app. After reviewing the logs, the event from BleManagerDidUpdateState fired is "unauthorized".

I did the testing on Iphone 15 pro max with IOS 18. The bluetooth permission is asked automatically on App start. even if i deny the permission, i am able to enable it again from the settings. Weirdly enough the user is not able to enable it from the settings, since it does not appear there.

After some research in the issues here, i understood that the IOS automatically requests the bluetooth permission when bluetooth added to the infoplist.

No where in the documentation the bluetooth permission for the IOS is mentioned. Does anyone have an idea why the user iphone is not requesting the bluetooth permission? i already asked the user to reset location or privacy but it did no work.

To Reproduce
I am not able to reproduce the issue not on a physical device nor emulator

Expected behavior
The app should ask for bluetooth permission os start up. If the user denies the permission, he can enable it in the settings.

Screenshots
screenshots sent from the user
IMG_0293 (1) (2) IMG_0294 (1) (2)

Smartphone (please complete the following information):

  • Device: Iphone 14
  • OS: iOS 17
  • react-native-ble-manager version: 10.0.0
  • react-native version: 0.71.14
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

1 participant