Nearable trigger, fires randomly with Iphone screen is locked

I’m trying to track objects movement, and when the app is open/ screen on iPhone is not locked, it works like a charm, but when the screen is locked, the trigger fires randomly and I can not seem to find the reason for that.

The strange thing is, even when I’m using a hack of trying to stay active in the background forever ("Playing music on 0 volume), I can get the nearable ranging, but the movement properly on them does not update too.

I would love to get a bit of info about how exactly the movement works and triggers, because triggering only when the screen in not locked is not good enough for tracking real-time object movements


Solved this with this:

1 Like