简体   繁体   English

适用于iBeacon的应用程序。 即使应用程序已终止,如何发现?

[英]App that works as iBeacon. How to be discovered even with the app has terminated?

I'm trying to use iBeacon in background mode and works fine, but I want that the app works when has been terminated by the system. 我正在尝试在后台模式下使用iBeacon并且工作正常,但我希望该应用程序在系统终止时有效。 It's possible to do this? 有可能这样做吗?

Thanks! 谢谢!

It is possible to write your app so it launches into the background when LocationServices sees an iBeacon, even if your app is terminated. 可以编写您的应用程序,以便在LocationServices看到iBeacon时启动到后台,即使您的应用程序已终止。 See my answer here: https://stackoverflow.com/a/19128781/1461050 请在此处查看我的回答: https//stackoverflow.com/a/19128781/1461050

It should just work, unless the user removes the app. 它应该工作,除非用户删除应用程序。 It's not the app itself that shows the beacon, it is the operating system showing the beacon on behalf of the app. 它不是显示信标的应用程序本身,而是代表应用程序显示信标的操作系统。 That doesn't change when the OS terminates the app, only if the user does it. 当操作系统终止应用程序时,仅当用户执行此操作时,这不会更改。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 用户终止应用程序时发出iBeacon通知(通过在任务视图中向上滑动它) - iBeacon Notification when the app has been terminated by user (by swiping it up in the task view) 即使应用程序终止,iOS 9 如何获取位置 - iOS 9 how get locations even if app terminated 当应用程序终止时,如何BLE设备将调用该应用程序 - How to BLE device will invoke the app, when app has terminated 即使应用程序终止,如何在 Swift 中每小时在后台获取数据? - How to fetch data in background every hour in Swift even the app is terminated? 即使应用程序终止,如何在 Flutter 中添加实时位置跟踪? - How to add live location tracking in Flutter even app is terminated? 我如何在我的应用程序中添加一个即使用户已卸载Mail.app也能正常工作的电子邮件链接? - How do I add an email link in my app that works even if the user has uninstalled Mail.app? 即使应用终止,如何持续接收CoreLocation更新 - How to constantly receive CoreLocation updates, even when app is terminated Swift - 即使应用程序终止,如何使用 URLSession 发送位置 - Swift - How to send location with URLSession even if the App is terminated 如何检测股票音乐应用程序是否已终止? - How can I detect if the stock music app has been terminated? 即使应用终止,也要进行后台处理 - Doing background process even if app is terminated
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM