Export to GitHub

btstack - issue #330

How to using BTstack receive RFCOMM data when application is in background?


Posted on Apr 6, 2013 by Quick Bird

I was using BTstack,and all the thing is working,but when the Application is in background,The Application can't reveive data right now.How to using BTstack receive RFCOMM data when application is in background? Like the BTstack Mouse / Keyboard / GPS.

Any thoughts or suggestions would be greatly appreciated.

Comment #1

Posted on Apr 7, 2013 by Swift Ox

That's not an issue. you should post on the developer mailing list, although that's not even an issue with BTstack, but a general "how do I run a program in background". First, running an app in background is bad design (I was young, and didn't know better). You should create a launch daemon and use BTstack in that. Anyway, please read Apple's iOS docu on background operation of apps. You can call "[application beginBackground....{}}" and it will run for 10 minutes.

Comment #2

Posted on Apr 14, 2013 by Quick Bird

I was tried to used the launch daemon.I will tell you when it is work.Thank you for you answer.it is very important for me!

best regards!

Comment #3

Posted on Jan 19, 2014 by Quick Bird

I was create a daemon.It is working.

Status: Invalid

Labels:
Type-Defect Priority-Medium