-
Notifications
You must be signed in to change notification settings - Fork 50
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
How to check if user has accepted Bluetooth permission? #26
Comments
Hi Edwin, Try this:
There is no way I know of to subscribe to authorization changes so you need something like this:
|
The idea of the In our app, we have a central object that handles calling
When the user reaches the point in the app that we have explained that we will ask for the BT permissions, the same object has a method
I might be able to expand some of those explanations, but I hope it makes everything a little bit clearer. In summary: we don’t give you a tool to ask for authorization, since one solution doesn’t work for everybody, but you don’t need to interact with PebbleKit to ask for the authorization. The idea behind |
@drodriguez Thanks for explaining the design decisions behind this. However, |
Still, |
@maxbaeumle sorry I wasn’t clear in the last part. Yes, you need to create your own Since you create your own
You can also check for |
In our on-boarding process there are completion handlers for permission requests so that we can make sure that the permission was granted before moving onto the next on-boarding step.
With PebbleKit however, calling the
run
function for the first time will launch the permission request though we have no way of knowing when the user finished choosing their option on the following popup which asks them for permission.What is the most reliable way for us to check whether or not the user has accepted the permission?
Thanks!
The text was updated successfully, but these errors were encountered: