Windows Phone 8 app wakup on bluetooth connection?

会有一股神秘感。 提交于 2020-01-05 10:27:28

问题


Is it possible in a Windows Phone 8 app that isn't active to detect Bluetooth connections and react to them?

I want to build a app the does some stuff as soon a the phone connects to the Bluetooth device. I.e. get in range of the device.

I'm realizing that this might be more than one question.

a. is it possible to detect bluetooth connection when the app isn't active.
b. is it possible to "popup" the app if it detects a connection?


回答1:


All connections of any kind are suspended when the application is in background mode. Your application cannot really respond to any events at all.

Unfortunately, this is the limitation of the sandboxed app model which lives in isolation from the operating system. When in background, it is suspended and no sensors nor connections live.



来源:https://stackoverflow.com/questions/16834107/windows-phone-8-app-wakup-on-bluetooth-connection

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!