tracyeminem / blesingle Goto Github PK
View Code? Open in Web Editor NEWAndroid O + 8.0 蓝牙锁屏后台扫描唤醒APP,android Ble Background Scan wakeup app
Android O + 8.0 蓝牙锁屏后台扫描唤醒APP,android Ble Background Scan wakeup app
我下载了lightBlue,也创建一个叫test2的虚拟设备,但是下载lightblue的手机好像和安装demo的手机没有什么关联,我这边模拟你那篇文章的操作,结果没有反应,请问怎么解决
操作系统为省电限制扫描,有其他办法绕过吗
考虑这种场景,做无感知保活。必须使用后台服务来做,当App被杀后,进程是唤不起来的,因为8.0对后台进程做了很多限制,AMS日志会是这样的
ActivityManager: Background start not allowed: service Intent { act=com.hungrytree.receiver.BleService pkg=com.example.tracyeminem.blesingle (has extras) } to com.example.tracyeminem.blesingle/.TestService from pid=-1 uid=10296 pkg=com.example.tracyeminem.blesingle
华为的部分手机也不行 Emmmm...
感谢你把这个demo发出来,不知道有没有空写一下这个如何使用?我装到手机上,打开蓝牙设备,除了会有一个前台通知显示正在工作,就没有任何反映了。log中也看不到有任何变化,蓝牙设备是确定已经开启并可以用其它APP搜索到的。扫描配置里我也改成了自己蓝牙模块的名称。
感觉应该是打开这个APP后,再打开蓝牙设备,应该有某些提示的。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.