Unable to detect Beacon device when iPhone sleeps.(goes background) - ios

I am trying to detect iBeacon devices from Application on iPhone.
It detects iBeacon device while running, but when I lock an iPhone,
it cannot detect (lose) the same iBeacon device.
(Proximity:Unknown RSSI:0 Accuracy:-1.0)
It can detect other device as Android (App:Locate Beacon) on the same condition.
Can anyone help me to find the reason and solution?
Note:
iPhone <=> iBeacon device Fail
iPhone <=> Android (App:Locate Beacon/iBeacon) Ok
Android:AltBeacon does good for same device.
Android <=> iBeacon device Ok

iOS Apps must dynamically request and obtain permission from the user to "Always" access location data in order to detect beacons in the background. As of iOS 13 the flow has changed, and the operating system makes it harder to obtain the "Always" permission from the user.
Read more here: http://www.davidgyoungtech.com/2019/10/18/permission-denied
To verify if your app has obtained the required permission, go to Settings-> App Name -> Location and see if it has "Always" permission to access location data.

If you are using an iOS device as an iBeacon transmitter, the transmission will no longer work if the app is not visible on the screen. iPhone apps are not able to emit beacon advertisements when not in the foreground.

I have a same problem.
A similar post in the Apple Developer Forums in the past has not been resolved.
https://forums.developer.apple.com/thread/115996

Related

Why is Iphone constantly transmitting a single beacon when it's bluetooth is enabled and it's screen is unlocked?

I've a iOS 10 device in my work place and I got curious about it's bluetooth's weird behaviour. So.. I was playing around with my Android's Beacon simulator App and I noticed that every time I unlocked my IPhone and enabled the Bluetooth a new entry was immediately created in my android's near by beacon's list. Is there a reason for that?
UPDATE 1
- handoff disabled
- AirDrop disabled
- No open apps.
= still got a mysterious broadcast on my Beacon Simulator App.
UPDATE 2
Ok, I was digging into the subject and noticed that the iOS device is not being able to find near by devices in a standard bluetooth discovery.
In the other hand, near-by devices can detected the iPhone and when clicking on his entry in their result's list a popup for pairing shows up on Iphone's screen and as if it was magic the name of the device trying to pair shows up on the iphone's list that is always empty, in this case Huawei P9 but tested with a note 4.
I am the developer of Beacon Simulator. I just want to warn that the app is a Beacon simulator before all, not really a Beacon scanner. I added the scanning part because it was easier to do some tests, for the beacon copy feature and also for future developments.
What the scanner will show you is not necessarily a beacon, but any scannable Bluetooth Low Energy devices, connectable or not. Unfortunately, it is difficult to know if a device is connectable or not with the Android API, so the app lists everything.
Since the icon represents a standard Bluetooth logo, it means it is a signal not recognized by the app (here, it isn't an iBeacon nor AltBeacon nor Eddystone beacon). So either it is a non standard beacon, or simply a signal to advertise a possible connection to the device. When a connectable device broadcast its presence, the signal uses the same channel and protocol than the one used by beacons. A connectable device will advert itself as connectable, but as said, the Android API erase this difference, unfortunately.
So what you see is not necessarily a beacon, but maybe simply your iPhone broadcasting its presence as a connectable device. Maybe I should add some disclaimers in the app.

Beacon Pairing iOS with only one UUID

I'm working on my Beacon project and I'm looking for best way to solve my problem.
I have few central device declared as Beacon (not iBeacon UUID).
My iOS app is working as peripheral mode in Background and Foreground.
I would like send specific data (chain characters) to be written in my app during background and foreground work.
I know that UUID is hiden by iOS when app is in background.
However, UUID is hiden only for devices which were not paired before.
Can i have a issue to implement list of UUID devices in my iOS list devices to be paired automatically when user downloaded the app ?
If not, Can I set one same UUID for my all central devices (but with with different minor and major values) and ask for first pairing when the app is turn as foreground for the first time with near central devices detected ?
Best regards,
Greg
My beacons are configured as central and they're scanning continually.
When they found iPhone's with my apps running as peripheral, my beacons try to write a value into my app.
I can't understand how implement my app (working as peripheral) to receive this value in background mode without pairing ?
--> Can I send value to my app without user pairing ?
If not
--> Can I send value to my app without user pairing including manually all my UUID's (central beacons) in the code of my app ?

iBeacon transmission when app is closed?

We would like to use some configuration of the iBeacon , where the user's iPhone will advertise its services, but when the app is closed.
So when a user come across a hardware beacon, it will recognise the user's iPhone(as a beacon) without opening the app, and even connect to it .
I could find here many opinions about that, but i wonder if there are any news with the iOS8 ,and if there is a clear answer for that from Apple ?
A couple of points:
Bluetooth beacons, iBeacons included, are transmit only. They don't see or "recognize" other beacons or phones. The statement "when a user come across a hardware beacon, it will recognise the user's iPhone(as a beacon)" is not possible with the technology regardless of whether the app on the phone is in the foreground or the background.
iBeacons are supported on iOS devices with version 7.x and 8.x of the operating system. On all these versions, however, beacon transmission from the iOS device is only supported when the app is in the foreground. See here for details.

iOS iBeacons Not Working on Few Devices

I have been trying to run iBeacon Receiver sample. The code is supposed to detect the devices entry into a region and exit out of region. The iBeacon region is created by a transmitter that is running on another iOS device.
The receiver code works perfectly in one of the devices I have (iOS 7.0.1). It is detecting the entry and exit out of the region. But the same code does not work on couple of other devices with iOS 7.1 [iPad Air] and iOS 8.0 [iPad Mini].
I believe these hardwares support Bluetooth LE.
Will I be missing some configuration on the devices? I am not able to track it down. Could you please suggest?
AFA iOS 8, when you do request permissions, be sure to add the new info.plist entries describing why your app is requesting the specific permission type(s) else it will continue to fail (frustratingly) silently.
See http://nevan.net/2014/09/core-location-manager-changes-in-ios-8/ (which is linked to via SO: iOS: App is not asking user's permission while installing the app. getting kCLAuthorizationStatusNotDetermined every time - Objective-c & Swift ) for more info.
One symptom I've seen to indicate you're in the "don't have the plist entries" state is that when looking at Location Services permissions in Settings, you can manually set the permission to "Always" but when you run the app, the selection clears (that is, you have no selection as to permission for that app for Location Services).
Beacon apps that work on iOS 7 silently fail to detect beacons when built for iOS 8, if they have not requested location permissions. See here for details:
In iOS 8 Beacon not detecting
This would not explain why the code you mention does not work on iOS 7.1, so perhaps that device has a hardware issue (Bluetooth off or Bluetooth LE unsupported.) The first iOS device to support Bluetooth LE is the iPhone 4S so 4 and earlier devices cannot detect beacons.

bluetooth low energy on standby mode in iOS?

I have read the docs about the BLE for iOS, and i could see that every device has its UUID instead of mac adress for the BLE.
My question ,in which there is no answer to on the docs, is- when you turn on the bluetooth on the device ( without opening any app) , so the device's bluetooth is on , what does it advertise then, and could I discover that device or get its UUID, while his bluetooth is on,but without any app that is open.
I am pretty sure that when the BLE is on, you can discover that device, or awake him, but I wonder what data can I get from him while its on without an app .
(same for Android.. )
iOS does not advertise any Bluetooth Low Energy services that are visible to another iOS device without an app running. Once an app advertises a service you will see additional services available - device information, time service, battery level.
If you are using different Bluetooth hardware to scan then you may see some advertisements without an app but the reported UUID of an iOS device changes every 15 minutes for privacy reasons - See this answer - Corebluetooth, How to get a unique UUID?

Resources