即使关闭应用程序也可以收听iBeacons [英] Listening iBeacons even if the app is closed

查看:60
本文介绍了即使关闭应用程序也可以收听iBeacons的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道,即使具有实现(通过BLE交互的代码-ibeacons的代码)的应用程序已关闭,是否也可以收听ibeacons.

I was wondering if it is possible to listen ibeacons even if the app that have the implementation (code to interact over BLE - ibeacons) is closed.

有可能吗?我是否可以编写一个告诉"设备一直在收听ibeacons的代码,如果发现该代码,则需要根据特定应用程序的代码执行一些操作?还是我需要我的应用始终保持运行以收听ibeacons?

Is it possible? Can i write a code that 'tells' to the device to listen ibeacons all the time and if found any, need to do some action based on code from specific app? Or i need that my app still running all the time to listen the ibeacons?

谢谢.

推荐答案

是的, Android Beacon库正是为此目的而设计的.它会在各种系统事件上自动启动后台信标扫描程序服务,然后可以基于信标检测启动应用程序的活动".

Yes, the Android Beacon Library is designed to do exactly this. It automatically launches a background beacon scanner service on various system events, and can then start your app's Activities based on beacon detections.

有关详细信息,请参见此处: http://altbeacon.github.io/android -beacon-library/background_launching.html

See here for details: http://altbeacon.github.io/android-beacon-library/background_launching.html

这篇关于即使关闭应用程序也可以收听iBeacons的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆