-
-
Notifications
You must be signed in to change notification settings - Fork 763
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 permission on iOS is asked on App launch #1219
Comments
I guess that's the default behavior for iOS for any device using bluetooth. You can customize the message on the infoplist. |
@lucaswitch So, there isn't a way to show this dialog where this package is used? There is a possibility of users dismissing the dialog mistakenly. I would prefer to show my dialog component before showing the system dialog for Bluetooth permissions. But, at present, I am not sure if it's possible considering the default behaviour for iOS. |
@lucaswitch https://stackoverflow.com/questions/29456654/bluetooth-le-ask-permission From this post, it seems like it is possible to ask permission when we actually would like to use the feature. |
Got it. For doing that is pretty straightforward. |
@lucaswitch I don't think my app gets the opportunity to check for the state. The pop-up appears as soon as the app opens. I have not written any code to start the Ble manager at the app launch. It appears without calling the So, install the package on Expo (Expo development build) and start the app on an actual device. It asks for Bluetooth permissions as soon as we open the app. I wanna ask it on the page where the Bluetooth feature is being used. |
Not sure quite sure, but i guess that permission you're seeing is prompted by the operating system itself when you add the bluetooth into infoplist. |
I have a related issue in Android. When launching the app, it asks for permission, and I grant it, but the scan is not working. I checked the phone settings, and the permissions are granted. When I toggle the permission off and then on again from my physical device's settings, the scan works perfectly. So, the permission needs to be granted from the physical device settings. Device: MI 11X |
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
I think this is something to look into as there is quite a possibility of users mistakenly skipping the prompt shown as soon as the app is opened. I don't think it should be closed unless someone reproduces this issue and the prompt is not shown at the beginning in iOS. I humbly request the ability to ask for Bluetooth permission when we use it as opposed to asking when the app opens. |
Describe the bug
Bluetooth permission dialog/pop-up opens up as soon as I launch the app. I would prefer the users to see it on the screen where they are using this library rather than showing it on the app launch
To Reproduce
I am using the Expo development build
Expected behaviour
Show the permission dialog where the manager is used/started.
Smartphone (please complete the following information):
The text was updated successfully, but these errors were encountered: