且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

iBeacon Region监控:重新启动手机时未恢复除非我设置位置后台模式?

更新时间:2023-02-26 22:14:08

我做了两件事:

首先,我减少了应用程序启动的时间>>主要是通过仅在应用程序移动到前台时执行操作。这是第1步,但对于我正在处理的真实应用程序,只有解决方案的一半

First, I reduced the time it took the app to launch >> mainly by doing stuff only when the app moves to the foreground. That was Step 1 but for the real app I was working on that alone was only half the solution

然后我发现有问题的应用程序试图访问设备被锁定时背景中的钥匙串我将它移到了稍后的位置并且BING它工作了!

I then found out that the application in question tried to access the keychain in the background while the device was locked I moved that to a later point too and BING it worked!