1
votes

iPhone 4s not receiving iBeacon notifications in background.

I have an app that acts as an iBeacon and also scans for them.Using an iPhone 5, iPad Air, and iPad mini Retina I get the notifications in the foreground and background.

One of our testers has a 4s and apparently only gets notifications in the foreground. It can apparently take up to 15 minutes to deliver the notification and apparently it is not arriving in that time frame. For background modes I have location updates, external accessory communication, uses bluetooth LE accessories and acts as bluetooth le accessory.

I also have notifyEntryStateOnDisplay set to YES. What is weird is that it does work as expected on all devices so I am curious if anyone else has seen this issue.

Currently I am confirming that:

a) It is for sure a 4s.

b) That background use is on for that app.

c) Will get a 4s tomorrow to try hands on.

1

1 Answers

1
votes

This is really tricky to test, so I would try it yourself and not rely on reports of a "tester". When you get your 4s, if you do not see background notifications in 15 min of an iBeacon showing up, try hitting the shoulder button and verifying you get it right away.

If this does not help, I'd suggest:

  1. Post your code that produces this problem so others can try.

  2. Try to run the code in the github project referenced in my blog post here and see if that code triggers within 15 min.

If the code in (2) works, there might be an issue in how you are setting it up.