Nearby Interaction

RSS for tag

Locate and interact with nearby devices using distance, direction, and identifier.

Posts under Nearby Interaction tag

130 Posts

Post

Replies

Boosts

Views

Activity

Indoor navigation with Iphone 12 pro + airtags
Hi, I'm a computer engineering student and I'm working on my end-of-degree project. For part of this project I need to be able to locate my position within a room of about 5x5m with an error of +-50cm. I think with the airtags placed at known locations like 3 corners of the room and with the distances to those 3 airtags it would be possible to triangulate my position with sufficient precision. For this I think I have to use the Nearby Interactions framework but I can't find how to work with airtags only with other iphones (Peer session) Could someone guide me?
0
1
1.5k
Apr ’23
NISession creation not working
Hello everyone, I want to create a NISession instance in my code but anywhere I call NISession() the simulator crashes with no error code. I followed the tutorial from apple about NearbyInteraction and downloaded their sample code and even there the NISession creation causes the app to crash. I updated my Mac to the latest version (Ventura 13.1) but this didn't fix the problem neither. I hope you can help me.
7
4
2.3k
Mar ’23
UWB Signal Direction in Background Mode between two Devices (iPhones)
Hey Folks, I am a bit stuck on creating UWB session between two iPhones in background mode of the application. The UWB works fine on foreground mode of the application but it doesn't work in background. I get error of invalid configuration and while searching on stackoverflow I get the answer that the discovery tokens are invalid. Can anyone please guide me if someone has done it in background mode. Getting this error: Error: Error Domain=com.apple.NearbyInteraction Code=-5888 “NIERROR_INVALID_CONFIGURATION_DESCRIPTION” UserInfo={NSLocalizedRecoverySuggestion=NIERROR_INVALID_CONFIGURATION_RECOVERY_SUGGESTION, NSLocalizedDescription=NIERROR_INVALID_CONFIGURATION_DESCRIPTION, NSLocalizedFailureReason=NIERROR_INVALID_CONFIGURATION_FAILURE_REASON}
2
0
2.5k
Feb ’23
Near By Interactions in background mode wwdc22
Anyone here who implemented apple nearby interactions I'm continously getting this error and unable to resolve this. I'm getting accessoryData from BLE device chractristics and bluetooth identifier of connected BLE device. let config = try NINearbyAccessoryConfiguration(accessoryData: accessoryData,                                                             bluetoothPeerIdentifier: peerIdentifier) Error: Error Domain=com.apple.NearbyInteraction Code=-5888 "NIERROR_INVALID_CONFIGURATION_DESCRIPTION" UserInfo={NSLocalizedRecoverySuggestion=NIERROR_INVALID_CONFIGURATION_RECOVERY_SUGGESTION, NSLocalizedDescription=NIERROR_INVALID_CONFIGURATION_DESCRIPTION, NSLocalizedFailureReason=NIERROR_INVALID_CONFIGURATION_FAILURE_REASON}
0
1
1.7k
Nov ’22
UWB-based communication with multiple devices
Can I use Nearby interaction to determine the location of 3 or more devices? I learned that by adding a session through the article below, I can interact with multiple devices. My question is, is it possible to make session A connect only with device A and session B only with device B? I've just started studying development, so I don't have a lot of knowledge. Thanks a lot for your help.
3
0
3.3k
Oct ’22
Nearby Interactions
Hi, I was wondering if anyone know of ways to use the Nearby Interactions API with a Javascript backend application. We have an app that we want to interact with a UWB device but want to wrap the api so in the future we can make it compatible with other phone provider's UWB apis. This is for a personal Senior Design Project, so I would appreciate any help. Thanks!
0
0
1.8k
Oct ’22
Required data link for Nearby Interaction?
Can I start a nearby interaction session with an accessory device without first establishing a data link? My team has done UWB development between two Qorvo boards (DWM3001C) but are now interested in bringing in the iOS UWB. We’ve had great success with UWB connections without using Bluetooth between Qorvo boards and I figured that the process would be similar for an iOS device. Going through the documentation, it seems that a data link (typically Bluetooth) is required to start a session. We were hoping to take this out of the protocol all together and hard code the accessory and iOS UWB configurations. Is this possible?
0
0
1.5k
Oct ’22
How to set visionAssistanceEnabled flag in NISession
I would like to get the direction value from NISession, from the document, it said "On iPhone, it’s possible to receieve direction for nearby third-party accessories in sessions that enable visionAssistanceEnabled" but i have no idea how to enable it as there is no member belong to NISession, plus deviceCapabilities is only available in IOS 16+ anyone has idea?
1
0
1.3k
Oct ’22
Nearby Interaction
Hello! Whether the Nearby Interaction can interact with multiple Third-Party Accessories devices? I've tried creating a separate session for each nearby object, but only the later session is active. The early session was active at the first, and was inactive when the later session start, I'm sure that each session and accessory has unique discoveryToken... Can someone help me? Thanks!
1
0
1.2k
Sep ’22
background TWR Session Respose in myapp
In my app, I have configured BackGround Session like the following code. var peerIdentifier = peripheral!.identifier do { configuration = try NINearbyAccessoryConfiguration(accessoryData: accessoryData, bluetoothPeerIdentifier: peerIdentifier) (configuration!.accessoryDiscoveryToken.description) : (devicename) : (peerIdentifier)") }catch{ return } cacheToken(configuration!.accessoryDiscoveryToken, accessoryName: devicename) nisession?.run(configuration!) However, the Delegate setting does not receive a response whether it is an error func session(_ session: NISession, didUpdate nearObjects: [NINearbyObject]) Is there a way to receive NINearbyObject in the background? If not, is there a way to get a sample code on how to measure the background distance? When using 'nisession.delegate = self ' in background UserInfo={NSLocalizedRecoverySuggestion=NIERROR_SESSION_FAILED_RECOVERY_SUGGESTION, NSLocalizedDescription=NIERROR_SESSION_FAILED_DESCRIPTION, NSLocalizedFailureReason=This session object is invalidated. Dispose of it and create a new one instead.}
1
0
1.4k
Sep ’22
Help with NearbyCore precisionfind airtag
Im looking a way to get the distance to an airtag to be able to mesure 3 of them and find an indoor position with a swift app, can some one point in the right direction?
Replies
0
Boosts
0
Views
1.1k
Activity
May ’23
Is apple U1 interoperable with Android phones?
Hello everyone! I want to get distance information between an iphone12 and an android phone that supports UWB. I want to know that is the apple U1 chip is interoperable with Android devices, e.g., Google Pixel 6?
Replies
1
Boosts
0
Views
1.7k
Activity
May ’23
Indoor navigation with Iphone 12 pro + airtags
Hi, I'm a computer engineering student and I'm working on my end-of-degree project. For part of this project I need to be able to locate my position within a room of about 5x5m with an error of +-50cm. I think with the airtags placed at known locations like 3 corners of the room and with the distances to those 3 airtags it would be possible to triangulate my position with sufficient precision. For this I think I have to use the Nearby Interactions framework but I can't find how to work with airtags only with other iphones (Peer session) Could someone guide me?
Replies
0
Boosts
1
Views
1.5k
Activity
Apr ’23
Nearby Interaction is not working on physical devices running iOS 16.4
Hi, A recent update of software on iPhone does not seem to work with Nearby Interaction framework. The official sample code works on simulators with 16.4 but not on iPhone 13 Pro and iPhone 11. Has anybody found a fix to this?
Replies
1
Boosts
1
Views
1.1k
Activity
Apr ’23
Can i use uwb technology in playground?
i wanna use airtag for my project. But ipad doesn’t support u1. But iPhone has U1 chip. So can i use that features?
Replies
0
Boosts
0
Views
730
Activity
Mar ’23
NISession creation not working
Hello everyone, I want to create a NISession instance in my code but anywhere I call NISession() the simulator crashes with no error code. I followed the tutorial from apple about NearbyInteraction and downloaded their sample code and even there the NISession creation causes the app to crash. I updated my Mac to the latest version (Ventura 13.1) but this didn't fix the problem neither. I hope you can help me.
Replies
7
Boosts
4
Views
2.3k
Activity
Mar ’23
UWB Signal Direction in Background Mode between two Devices (iPhones)
Hey Folks, I am a bit stuck on creating UWB session between two iPhones in background mode of the application. The UWB works fine on foreground mode of the application but it doesn't work in background. I get error of invalid configuration and while searching on stackoverflow I get the answer that the discovery tokens are invalid. Can anyone please guide me if someone has done it in background mode. Getting this error: Error: Error Domain=com.apple.NearbyInteraction Code=-5888 “NIERROR_INVALID_CONFIGURATION_DESCRIPTION” UserInfo={NSLocalizedRecoverySuggestion=NIERROR_INVALID_CONFIGURATION_RECOVERY_SUGGESTION, NSLocalizedDescription=NIERROR_INVALID_CONFIGURATION_DESCRIPTION, NSLocalizedFailureReason=NIERROR_INVALID_CONFIGURATION_FAILURE_REASON}
Replies
2
Boosts
0
Views
2.5k
Activity
Feb ’23
Is Direction meansurement working in Iphone14
I am developing nearbyinteraction Apps, where the direction is not working in Iphone 14, while it works fine in Iphone 11,12,13.. when I try to check the availability isSupported = NISession.deviceCapabilities.supportsDirectionMeasurement Iphone 14 shows not support. Can anyone know more details?
Replies
1
Boosts
1
Views
1.5k
Activity
Feb ’23
Is it possible to get the distance between iPhone to AirPods with Nearby Interaction API?
I found that this is possible on Apple Watch and iPhone devices from Apple's resources, but I haven't seen anything about AirPods and AirTags. I'm wondering is it possible or not.
Replies
0
Boosts
1
Views
861
Activity
Jan ’23
AirTag API
When will apple release APIs to integrate support for AirTag in developer's apps?
Replies
4
Boosts
0
Views
9.5k
Activity
Dec ’22
In the Nearby Interaction framework
Is there any way to set data such as CH, data rate, and Preamble length?
Replies
0
Boosts
0
Views
1.2k
Activity
Dec ’22
Privacy - Location Always Usage Description
I would like to know if it is a reason for rejection in app store connect to add the Privacy - Location Always Usage Description permission when the ios developer target is ios 11?
Replies
0
Boosts
0
Views
1k
Activity
Nov ’22
Near By Interactions in background mode wwdc22
Anyone here who implemented apple nearby interactions I'm continously getting this error and unable to resolve this. I'm getting accessoryData from BLE device chractristics and bluetooth identifier of connected BLE device. let config = try NINearbyAccessoryConfiguration(accessoryData: accessoryData,                                                             bluetoothPeerIdentifier: peerIdentifier) Error: Error Domain=com.apple.NearbyInteraction Code=-5888 "NIERROR_INVALID_CONFIGURATION_DESCRIPTION" UserInfo={NSLocalizedRecoverySuggestion=NIERROR_INVALID_CONFIGURATION_RECOVERY_SUGGESTION, NSLocalizedDescription=NIERROR_INVALID_CONFIGURATION_DESCRIPTION, NSLocalizedFailureReason=NIERROR_INVALID_CONFIGURATION_FAILURE_REASON}
Replies
0
Boosts
1
Views
1.7k
Activity
Nov ’22
UWB-based communication with multiple devices
Can I use Nearby interaction to determine the location of 3 or more devices? I learned that by adding a session through the article below, I can interact with multiple devices. My question is, is it possible to make session A connect only with device A and session B only with device B? I've just started studying development, so I don't have a lot of knowledge. Thanks a lot for your help.
Replies
3
Boosts
0
Views
3.3k
Activity
Oct ’22
Nearby Interactions
Hi, I was wondering if anyone know of ways to use the Nearby Interactions API with a Javascript backend application. We have an app that we want to interact with a UWB device but want to wrap the api so in the future we can make it compatible with other phone provider's UWB apis. This is for a personal Senior Design Project, so I would appreciate any help. Thanks!
Replies
0
Boosts
0
Views
1.8k
Activity
Oct ’22
Required data link for Nearby Interaction?
Can I start a nearby interaction session with an accessory device without first establishing a data link? My team has done UWB development between two Qorvo boards (DWM3001C) but are now interested in bringing in the iOS UWB. We’ve had great success with UWB connections without using Bluetooth between Qorvo boards and I figured that the process would be similar for an iOS device. Going through the documentation, it seems that a data link (typically Bluetooth) is required to start a session. We were hoping to take this out of the protocol all together and hard code the accessory and iOS UWB configurations. Is this possible?
Replies
0
Boosts
0
Views
1.5k
Activity
Oct ’22
How to set visionAssistanceEnabled flag in NISession
I would like to get the direction value from NISession, from the document, it said "On iPhone, it’s possible to receieve direction for nearby third-party accessories in sessions that enable visionAssistanceEnabled" but i have no idea how to enable it as there is no member belong to NISession, plus deviceCapabilities is only available in IOS 16+ anyone has idea?
Replies
1
Boosts
0
Views
1.3k
Activity
Oct ’22
Sending Custom message (U1Chip) Nearby Interaction
Hello Everyone! I Am currently trying out the U1 chip on iPhones using the NearbyInteraction framework. I wanted to ask If there is a way that I can send custom data using the NISession.
Replies
1
Boosts
1
Views
1.2k
Activity
Oct ’22
Nearby Interaction
Hello! Whether the Nearby Interaction can interact with multiple Third-Party Accessories devices? I've tried creating a separate session for each nearby object, but only the later session is active. The early session was active at the first, and was inactive when the later session start, I'm sure that each session and accessory has unique discoveryToken... Can someone help me? Thanks!
Replies
1
Boosts
0
Views
1.2k
Activity
Sep ’22
background TWR Session Respose in myapp
In my app, I have configured BackGround Session like the following code. var peerIdentifier = peripheral!.identifier do { configuration = try NINearbyAccessoryConfiguration(accessoryData: accessoryData, bluetoothPeerIdentifier: peerIdentifier) (configuration!.accessoryDiscoveryToken.description) : (devicename) : (peerIdentifier)") }catch{ return } cacheToken(configuration!.accessoryDiscoveryToken, accessoryName: devicename) nisession?.run(configuration!) However, the Delegate setting does not receive a response whether it is an error func session(_ session: NISession, didUpdate nearObjects: [NINearbyObject]) Is there a way to receive NINearbyObject in the background? If not, is there a way to get a sample code on how to measure the background distance? When using 'nisession.delegate = self ' in background UserInfo={NSLocalizedRecoverySuggestion=NIERROR_SESSION_FAILED_RECOVERY_SUGGESTION, NSLocalizedDescription=NIERROR_SESSION_FAILED_DESCRIPTION, NSLocalizedFailureReason=This session object is invalidated. Dispose of it and create a new one instead.}
Replies
1
Boosts
0
Views
1.4k
Activity
Sep ’22