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

为什么对一个设备已经开了通知了,去其他activity监听这数据,还需要开通知才行 #39

Open
strongerzzx opened this issue Jun 13, 2024 · 1 comment

Comments

@strongerzzx
Copy link

感觉蓝牙的通知是不是只要打开了,就不用频繁的notify?能不能把获取蓝牙返回给app的数据跟打开蓝牙的通知进行分离?

@buhuiming
Copy link
Owner

小伙子,notify可以在连接成功之后设置,使用观察者模式或者全局对象去接受和分发数据。使用观察者模式最佳。

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

2 participants