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

Android notification not working #33

Open
KeyvanPouyan opened this issue Apr 19, 2015 · 2 comments
Open

Android notification not working #33

KeyvanPouyan opened this issue Apr 19, 2015 · 2 comments

Comments

@KeyvanPouyan
Copy link

Hey guys,
The device I am working with has several characteristics. There is one that we care about and enabling notification on it won't do much in Android. I see that the onDescriptorWrite returns successful but no value is getting updated. I played around the Charactratics and Gattcallback but it seems nothing can make it work. I see that there are other users who have the same issue. I used the sample that you guys posted and notifications do not work as well.

@KeyvanPouyan
Copy link
Author

Hey guys,
I managed to make it work. Apparently some BLE API implementation on Google side prefers having all the Gatt calls on the UI thread. Each call needs to be queued, so no overlapping calls. Each call needs to be completed before running the next one.

@KeyvanPouyan
Copy link
Author

I did not contribute to the project as I understand having calls on the GUI thread is not desirable. Hopefully Android API gets a major facelift soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants