Post not yet marked as solved
By referencing to the Developer Forums, we could handle multiple concurrent sessions using iphone11.
The maximum number of concurrent sessions is two.
When we try to connect another one devices, session(_:didInvalidateWith:) on the NISessionDelegate is called with NIError.Code.activeSessionsLimitExceeded.
I'd like to know three or more concurrent sessions are running using newer version like iphone12.
Does anyone have any knowledge?
Post not yet marked as solved
I'm attempting to upload a sample Nearby Interaction app to Testflight so others on my team can test. When I submit the app, I get an email from the Apple saying this: "Missing Purpose String in Info.plist - Your app's code references one or more APIs that access sensitive user data. The app's Info.plist file should contain a NSNearbyInteractionAllowOnceUsageDescription key...". In Xcode 13, this key does not seem to be available under Custom iOS Target Properties. I have the Deployment set to iOS 15. Reading here, https://developer.apple.com/documentation/bundleresources/information_property_list/nsnearbyinteractionallowonceusagedescription, it says the above key is Deprecated and to use NSNearbyInteractionUsageDescription, which I have done but still get the submission error. Any help would be appreciated!
Post not yet marked as solved
Hello,
I recently experimented with the Nearby Interactions demo project for the U1/UWB chip. When using my iPhone 12 Pro and an Apple Watch Series 6 I was only able to go a distance of 16 feet before to connection would seem to break. Does anyone know if there is a way to utilize these chips to support calculating the distance between devices at a greater distance than what I was able to get?
Post not yet marked as solved
Dear Apple developers, I am a developer of smart home. As for the application of UWB technology in smart home, do traditional smart home manufacturers need to access Apple'S UWB chip
Post not yet marked as solved
I installed an official app made by the apple from there https://developer.apple.com/documentation/nearbyinteraction/implementing_interactions_between_users_in_close_proximity on my IOS 15 iPhone 11 and it doesn't work.
Every time when NISession try to run it turns to suspended mod with no reasons.
Does anyone have idea?
Post not yet marked as solved
After upgrade to macOS Monterey and Xcode 13.1 my C++ projects are failing to compile. There are a lot of errors for not defined entities in various headers and a lot of linker errors for header files not found. This situation appeared after the upgrade with absolutely no changes in the codebase of my projects. Before the upgrade everything was fine and now I have more than 20 errors in one of my projects! I'm using VS Code as an IDE. Please give me advice, how to fix this issue?
Post not yet marked as solved
Now'sample can connected with one Third-Party Accessory to receive periodic measurements of its distance,I want to connect four accessories(not iPhone) to receive their distance and direction at the same time ,How to do that. please tell me if you know how to do that,thank you very much!
Post not yet marked as solved
When I checked the NearbyInteraction Accessory Protocol Specification, the sequence diagram in Section 2.4 stated (1) Establish a data link (ieBLE, LAN, Cloud, or other).
However, in the sample code, there is no communication method setting for establishing the data link.
Since it is described in the specification, it means that there is an arbitrary establishment method but the implementation method has not been released yet, or it is necessary to contact Apple at the time of product development and request disclosure of the specification.
Please tell me who knows.
Post not yet marked as solved
HELLO 😊
I want to range two iphones 11 to single of DWM3000EVB device at the same time (simultaneous ranging /measuring distance )via UWB nearby interaction framework
will i be able to do it ? how to do it ? please let me know the code example on the side of iphone11 (swift code ) and the code on the side of DWM3000EVB
how many maximum of iphones 11 are able to range / interact to one of DWM3000EVB simultaneously with UWB ranging in order to get distance ?
the series or model of u1-equipped iphone is the factor of amount of iphones when UWB ranging ? for example iphone11 range to one DWM3000EVB or iphone 12 range to one DWM3000EVB or iphone 13 range to one DWM3000EVB or iphone 11 /12 /13 , 3 different series 's iphones range to one DWM3000EVB in the same event simultaneously , please let me know
Thank you very much! please see the picture below
Post not yet marked as solved
Hello, i want to know if an Iphone 11 with its U1 Chip for example is able to get angle information of another Iphone and in how many dimensions. I reckon more than 2D is not possible.
An Iphone in combination with the Airtag seems to be able to get angular information but the antenna array might be provided in the tag rather than the Iphone.
Thanks for your help!
Post not yet marked as solved
I am creating an IOS app using swift and was wondering if the Nearby Interaction framework (https://developer.apple.com/documentation/nearbyinteraction) could be used to locate and transfer files from one iPhone to another.
Post not yet marked as solved
I would like to hear from you.
Post not yet marked as solved
Can we broadcast light custom application data using ultra U1 technology without BT/Internet connectivity?
I have UWB Ultra wideband integrated in my multiple iPhones using which I want to send/receive custom data (very low amount, possibly couple of integers with interval) between two iPhones without requiring any validation (connection establishment). The requirement is similar to broadcasting advertisement message of BT/WiFi. I wonder for UWB if it is possible or not. Any paper or article if feasible?
Post not yet marked as solved
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.
Post not yet marked as solved
Hi,
My sample work fine with 2 sessions on simulators, but don't work between 2 devices (iPhone 11 Pro and iPhone 13 Pro), or one device and one simulator. (iOS 14)
I get didInvalidateWith Error (Domain=com.apple.NearbyInteraction Code=-5884).
I re-tried with new session on error, but don't work.
Any suggestion?
Thanks
Post not yet marked as solved
Hello All,
I am facing one problem in the Nearby Interaction library, I want to connect multiple devices at the same time,
Right now NISession is disconnect itself when a new device comes in range and connect with a new device
My question is how can I connect with multiple devices at the same time and access the distance of all the connected devices.
This how i am using right now
final class NearbyInteractionManager: NSObject {
static let instance = NearbyInteractionManager()
var sessionNI: NISession?
weak var delegate: NearbyInteractionManagerDelegate?
func start() {
sessionNI = NISession()
sessionNI?.delegate = self
MultipeerConnectivityManager.instance.delegate = self
MultipeerConnectivityManager.instance.startBrowsingForPeers()
}
private var discoveryTokenData: Data {
guard let token = sessionNI?.discoveryToken,
let data = try? NSKeyedArchiver.archivedData(withRootObject: token, requiringSecureCoding: true) else {
fatalError("can't convert token to data")
}
return data
}
}
extension NearbyInteractionManager: MultipeerConnectivityManagerDelegate {
func connectedDevicesChanged(devices: [String]) {
print("connected devices changed \(devices)")
}
func connectedToDevice() {
print("connected to device")
MultipeerConnectivityManager.instance.shareDiscoveryToken(data: discoveryTokenData)
}
func receivedDiscoveryToken(data: Data) {
print("data received")
guard let token = try? NSKeyedUnarchiver.unarchivedObject(ofClass: NIDiscoveryToken.self, from: data) else {
fatalError("Unexpectedly failed to encode discovery token.")
}
let configuration = NINearbyPeerConfiguration(peerToken: token)
sessionNI?.run(configuration)
}
}
// MARK: - NISessionDelegate
extension NearbyInteractionManager: NISessionDelegate {
func session(_ session: NISession, didUpdate nearbyObjects: [NINearbyObject]) {
delegate?.didUpdateNearbyObjects(objects: nearbyObjects, token: nearbyObjects[0].discoveryToken)
}
func session(_ session: NISession, didRemove nearbyObjects: [NINearbyObject], reason: NINearbyObject.RemovalReason) {}
func sessionWasSuspended(_ session: NISession) {}
func sessionSuspensionEnded(_ session: NISession) {}
func session(_ session: NISession, didInvalidateWith error: Error) {}
}
protocol NearbyInteractionManagerDelegate: class {
func didUpdateNearbyObjects(objects: [NINearbyObject], token: NIDiscoveryToken)
}
Any update will be very helpful full
Thank you
Post not yet marked as solved
Hi there,
Im trying to use the Nearby Interactions, but when i do the import, XCode tells me that "File 'HomeViewController.swift' is part of module 'NearbyInteraction'; ignoring import" and when i want to create a NISession object it says that cant find NISession in this scope
Any fix for this?
Thank you
Post not yet marked as solved
I want to create a hands-free application (e.g. smart lock)using the Nearby Interaction framework.
Nearby Interaction sessions can only be active when the app is in the foreground, however, it can't be a complete hands-free application.
Does anyone have any good ideas?
Post not yet marked as solved
Hello,
We are a company working on Ultra Wideband solutions and, hence, using Apple's NearbyInteraction framework to establish UWB Ranging sessions with our UWB-enabled third-party accessory.
This week we were excited about the new background UWB Ranging session possibility, which opens new use cases. The wwdc2022 10008 video that provides the technical details for this feature indicates that the third-party accessory is responsible to expose the Nearby Interaction GATT Server. We don't manage to get full details about what needs to be implemented to by compliant with Apple's framework.
The URL below indicates that full BLE details should be explained in the "Nearby Interaction Accessory Protocol Specification" but we don't see any info there.
https://developer.apple.com/documentation/nearbyinteraction/ninearbyaccessoryconfiguration
https://developer.apple.com/nearby-interaction/specification/
Can someone indicate us where the find full details for this background Nearby Interaction feature?
Thanks in advance.
Regards.
Post not yet marked as solved
Hello,
I wonder if multicast is possible on the third-party device side.
If I understand correctly, all devices in a multicast session have the same session ID. As the iPhone decides this parameter, I will never be able to use this feature on my third-party device.
Am I correct ? Is it possible to connect more than 5 iPhone to a third-party UWB device ?
Thanks for reading me!