我在做一个蓝牙控制设备的App,有个倒计时的需求,倒计时最长15分钟,当时间到了给设备发消息,控制设备关闭。
现在发现问题,在App进入后台三四分钟后就会被杀掉,代码逻辑自然也就不会执行了,导致设备一直开启状态,请问这种问题怎么解决?
另外,我的app并非属于 音乐,通话,地图类的设备,就是简单的控制一个设备开关啊,抖动啊什么的这些。
求思路
伊谢尔伦2017-04-18 09:33:30
It has been solved, use the Bluetooth mode, and then continue to exchange data with the device through Bluetooth, so that the app will keep running in the background while it is connected to Bluetooth
伊谢尔伦2017-04-18 09:33:30
The app always plays a blank audio loop in the background. The mode is mixed and not exclusive. It should be OK