Post not yet marked as solved
Will the apple have the plan to support or interact with other UWB DEVICES ? for example iphone 11 can measure the distance between iphone 11 and other brand of UWB devices or third-party UWB devices ,
BECAUSE IF APPLE HAS the SUPPORT OF THE API FOR U1 chip OR IPHONE 11 TO INTERACT OR MEASURE THE DISTANCE WITH OTHER BRAND OF UWB DEVICES THAN ONLY IPHONE11 OR APPLE AIRTAG , I REALLY THINK THE APPLE DEVELOPERs WILL BE ABLE TO CREATE MANY OF CREATIVE APPs more and more ,when the apple allow the iphone 11 interact with other brand UWB THAN ONLY iphone 11 or apple airtag or only apple products
I meant i just want to measure the distance between iphone 11 and the UWB anchor ( UWB arduino device ) or other brand of UWB anchor or many of various UWB- IoT devices
I AM ONE OF APP DEVELOPERS , I PERSONALLY ASK THE APPLE TO CREATE THE UWB API THAT ALLOW THE IPHONE 11 INTERACT OR MEASURE THE DISTANCE BETWEEN IPHONE 11 AND OTHER BRAND OF UWB DEVICES OR ANCHOR AS ARDUINO
so will the apple have the plan to support or interact with other UWB DEVICES soon ? when ?
Post not yet marked as solved
As noted on the comparison page for Apple Watch - Series 6 - https://www.apple.com/watch/compare/, the U1 chip (Ultra Wideband) is a feature of the Apple Watch - Series 6. The WWDC 2020 session, Meet Nearby Interaction - https://developer.apple.com/videos/play/wwdc2020/10668/, does imply that this functionality exists on devices with a U1 chip, though the NearbyInteraction framework appears unavailable in watchOS.
Can anyone confirm whether NearbyInteraction is available for watchOS?
Post not yet marked as solved
Because of the 8 peer limit I'm using NWListener, NWBrowser, NWConnection, and Bonjour for up to 20 peer-to-peer concurrent connections.
I followed this answer - https://developer.apple.com/forums/thread/652180 and this answer - https://developer.apple.com/forums/thread/661148 which are both from Apple engineers.
The first one said to create multiple concurrent NISessions:
All NISessions are peer-to-peer and as a result, creating multiple NISession objects is necessary to have multiple concurrent sessions. One approach is to create a dictionary between an identifier for the peer (i.e. a user identifier provided by your app MyAppUserID) and the NISession objects while also keeping track of the NIDiscoveryToken for each peer identifier: var sessions = [MyAppUserID: NISession]()
var peerTokensMapping = [NIDiscoveryToken: MyAppUserID]() And the second answer said to perform interactions with multiple iPhones:
Create an NISession for each peer you would like to interact with. For example, if you are interacting with two peers, create 2 * NISession objects. Each NISession will have a unique NIDiscoveryToken associated with it. Share discovery token #1 with peer #1, and share discovery token #2 with peer #2. When you receive discovery tokens from peers #1 and #2, create 2 * NINearbyPeerConfiguration objects and use them to run sessions #1 and #2, respectively. The problem is when sending out a NIDiscoveryToken via NWConnection, I can't find a way to link to the NISession from the sent out data to the token that is received from the incoming data after I initialize a NINearbyPeerConfiguration object:
eg.
User object which is sent and received when other devices are discovered
class User: NSObject, NSSecureCoding {
		var uid: String?
		var peerToken: NIDiscoveryToken? = nil
		init(uid: String, peerToken: NIDiscoveryToken) {...}
		// ... encoder for uid and peerToken
		// ... decoder for uid and peerToken
}
Send current user's NIDiscoveryToken data via NWBrowser and NWConnection and save it to the
peerTokensMapping dictionary and save the session to the sessionsArr
let currentUserId = "qwerty"
var sessionsArr = [NISession]()
var sessions = [String: NISession]()
var peerTokensMapping = [NIDiscoveryToken: String]()
func sendDataWhenNewDeviceIsDiscovered() {
		let session = NISession()
		session.delegate = self
		guard let myToken = session.discoveryToken else { return }
		let user = User(uid: currentUserId, peerToken: myToken)
		guard let outgoingData = try? NSKeyedArchiver.archivedData(withRootObject: user,
																														 requiringSecureCoding: true)
		else { return }
		let message = NWProtocolWebSocket.Metadata(opcode: .text)
		let context = NWConnection.ContentContext(identifier: "send", metadata: [message])
		connection.send(content: outgoingData, contentContext: context, isComplete: true, completion: .contentProcessed({ [weak self](error) in
		if let error = error { return }
				self?.sessionsArr.append(session)
				self?.peerTokensMapping[myToken] = self!.currentUserId
		print("Successfully Sent")
		}))
}
Receive other user's NIDiscoveryToken data via NWListener and NWConnection.
connection.receive(minimumIncompleteLength: 1, maximumLength: 65535) {
		[weak self](data, context, isComplete, error) in
		if let err = error { return }
		if let data = data, !data.isEmpty {
				self?.decodeReceived(data)
		}
}
func decodeReceived(_ data: Data) {
		guard let incomingData = try? NSKeyedUnarchiver.unarchiveTopLevelObjectWithData(data) as? User
		else { return }
		guard let uid = incomingData.uid, let peerToken = incomingData.peerToken
		else { return }
		let config = NINearbyPeerConfiguration(peerToken: peerToken)
		/* not sure what to do here to get the session that was created when the data was sent out */
		for (key,_) in peerTokensMapping {
				if key.??? == peerToken.??? {
						session.run(config)
						self.sessions[currentUserId] = session
						break
				}
		}
		/* or try this but this is the other user's peerToken so this will never work */
		for session in self.sessionsArr {
				if session.discoveryToken ?? "" == peerToken {
						session.run(config)
						self.sessions[currentUserId] = session
						break
				}
		}
}
Once the NINearbyPeerConfiguration is initialized how do I connect the incoming peerToken with the correct one that was sent out above that is currently inside the peerTokensMapping dict or the sessionsArr so that I can
get the session and call session.run(config)
Post not yet marked as solved
I'm very excited about the new AirTag product and am wondering if there will be any new APIs introduced in iOS 14.5+ to allow developers to build apps around them outside the context of the Find My network?
The contexts in which I am most excited about using AirTags are:
Gaming
Health / Fitness-focused apps
Accessibility features
Musical and other creative interactions within apps
I haven't been able to find any mention of APIs. Thanks in advance for any information that is shared here.
Alexander
Does Nearby Interaction API support interaction between an iPhone with U1 chip with AirTags?
Post not yet marked as solved
Which UWB chip is recommended by Apple to be used, if one wants to build an interactive Airtags device? Is there a support for 3rd party tag vendors at all?
Post not yet marked as solved
HI 😊 I want to create MY OWN APP that will be able to communicate with my customized UWB devices ( UWB CHIP MOUNT ON ARDUINO / RASPERRY PI board or maybe can communicate with airtag / samsung tags /other third parties uwb tags ,too , but however my main purpose is , create my app that will be able to communicate with my customized UWB tag / devices ,
So I found out that the NEARBY INTERACTION framework that utilizing the UWB U1 CHIP of iphone 11/12 ,* does not provide the API CODE for this 😥
later on , Apple allows the app developer to only create their own UWB DEVICES / TAGs that will be able to communicate / utilize with iphone11/12 BUT ALL OF THE UWB CUSTOMIZED DEVICES / tags FROM THE DEVELOPERS ,-- MUST BE USED WITH ONLY THROUGH " * Find My ( APP ) *** " FROM APPLE
under the app developer of Apple program , called * MFi * - MADE FOR IPHONE = https://mfi.apple.com/ -- under this program , * the developers can not create their own uwb app to utilize their own uwb devices/ tags as like me *😥
now there are some of third parties devices such as -Ebikes VanMoof S3 ,X3 model or Chipolo ONE Spot uwb tags or Belkin earbuds that joint MFI APPLE program , however all of them must be used with Find my app ( Apple ), ** they can not create their own app to utilize their own uwb devices
So I do not know when will apple provide its uwb API for developers to create their own app to communicate with their own uwb tags / devices I want to create my own app that will be able to get the distance / direction from my uwb devices or maybe third parties devices too* but right now can not because of what I explained above ,in this Apple forum question
so if Apple open the UWB API for the app developers access / develop their own ( using - UWB ) apps ,Apple will have more creative UWB apps from creative ideas of app developers
So I am asking Apple ,-When will Apple provide the uwb API for the app developers to do such a things as my case ?
PLEASE 🥺
Post not yet marked as solved
Hi,
I’m a CS university professor conducting research on assistive technologies. I’m looking forward to experimenting my own app based on nearby interaction between an iPhone and uwb devices (i.e., not iPhones). Which devices could I can use? Is it possible to use airtags?
Thanks!
Post not yet marked as solved
I have AirTags on the iPhone 11, and wonder if it possible to utilize both AirTags in ONE-GO to find an item. Similar to achieving checkpoints in a racing game but instead the checkpoints are the AirTags (wayfinding).
Hi,
I've been trying to make an app that can connect to more than one UWB source at a time.
I've three iPhone 12 Pro and I am using NearbyInteraction to retrieve the distance and direction from one iPhone to the other.
I've used MultipeerConnectivity to share the discovery tokens from all devices.
My code at the moment can perfectly handle two devices sharing their distance and direction, but at soon as I connect the third phone, all sharing stops.
I am wondering if I am doing something wrong or if there is a limitation on Apple side to prevent devices from retrieving the distance and direction from more than one source at a time.
I am not giving too much detail about my implementation yet, but don't hesitate to ask questions about it.
Thanks in advance for your help.
Post not yet marked as solved
May I know if iphone 12 mini support NIPeekaboo app? I installed one on iphone 11 it worked well, but using the same iOS installed by same Xcode to copy to the iphone12 mini, the app can not be opened.
Post not yet marked as solved
Hi guys,
recently I have updated my App to use the Wi-Fi connection for IOT purpose.
I needed to add the string in Info.plist to advise users to consent the localization when in use, in order to use the NSLocation API (I need to check if the Wi-Fi I'm connected is right, otherwise the app automatically open the Wi-Fi settings on the phone).
My problem is that after the package build, sending and verification ok on the App Store, on some device the app doesn't run.
Specifically on the iPhone 11 and iPhone 12, however on older devices it runs perfectly.
The issue is that the app show the LaunchScreen then it close immediately, the app is still in the background processes but doesn't open.
I submitted a TSI ticket but I get no response, more far I was forced to re-update on the store the previous version of the app to preserve my customers experience. So I can't upload the new version because I can't find why this happens and how fix it.
Anyone had same problem with Wi-Fi, or permission by users?
Post not yet marked as solved
Hi 😊 anyone , framework engineer and Apple
i just tested the nearby interaction with third party accessories from Qorvo DWM3000EVB module then run the sample app , regarding to the sample app from Qorvo as the result of the photo below
i have seen the Qorvo NI demo app ,will be able to display the azimuth and elevation angle as 3D positioning
, so my question are -->
1.--> the azimuth and elevation angle are measured by the angle of arrival , right ?🤔
2.--> regarding to the Qorvo NI demo app displaying the azimuth and elevation angle , both technically are
measured by ** 3D AOA (angle of arrival) ** , right ??🤔
3.--> regarding to question 2. ,* if iphone11 use 3D AOA to get azimuth , elevation angle * so --> HOW MANY UWB antennas are in the iphone 11 ?? 🤔 because it can get angular measurement as the photo above (Qorvo NI demo app ) 🤔 , -->please can you figure out or show the diagram of antennas on iphone 11 or any u1 equipped iphone🥺
Please let me know 🥺
Post not yet marked as solved
HI :)Apple , framework engineer
i am appreciated for the help of Apple ,framework engineer that provide the third party nearby interaction framework with third party accessories 🙏😊
so , i just tested the evaluation kit from Qorvo ,DWM3000EVB attach on nRF52840DK , then testing the 2 sample apps and get the result as the photo below
and on the monitoring screen on jlinkRttViewer
so i found out that on the dwm3000evb has only one antenna ( and not antenna array type) , so it will not be able to achieve the 3D AOA ,azimuth ,elevation angle ON THE SIDE OF dwm3000evb , because dwm3000evb ,base on dw3110 that has only 1 antenna ,as the green rectangle area photo below
and the dw3120 also come with only 2 antennas , so i can get only 2D AOA (angle of arrival )
however i can get 3D AOA ,azimuth ,elevation angle FROM THE IPHONE11 SIDE as the photo of QorvoNIdemo_app.jpeg above , i think u1 equipped iphone has at least 3 antennas , that why it can display 3D AOA
so in this moment , all chip and Evaluation kit that sell on Qorvo web page , there are none of them that can get 3D AOA in this moment
then i looked for NXP . in this moment, there are 3 companies that sell the UWB accesories , however mk uwb mobile knowledge evaluation kit vendor and sunway vendor do not have 3 antennas on board , both vendors has only 2 antennas
so there are 2 antennas on board , regarding to the photo above from 2 companies , so it can achieve only 2D AOA
but from the UWB Development Kit: Murata Type2BP EVK
there are 3 antennas on the board , so it can display 3D AOA , azimuth ,elevation angle on the board side as it did on the iphone11 side from the photo on the top of article
but i try to ask for the price and already sent the inquiry to murata , but nobody contact me back 😥
I JUST WANT TO TEST TO GET 3D AOA azimuth ,elevation angle on the SIDE of the third party accessory (not the iphone11 SIDE ) ,and display the result on the monitoring screen on the laptop as an example of displaying on the jlinkRttViewer photo on top
my purpose of my post are --->.😉
so i posted this article because** i just want to ask,(please) APPLE to tell QORVO to produce the evaluation kit with (3 antennas ) that will be able to measure 3D AOA as it has done on the iphone 11 side , because there are many developers waiting for it 🥺🙏
ps. Apple bought Decawave then change the name to Qorvo , so it is not too hard , if Apple tells Qorvo to do it😉 and i personally think , the board from Qorvo is more affordable than other ,
the more affordable price and more functionality as 3D AOA , the more creative apps with third party accessories ,it is going to be , FOR APPLE
2.and Apple please tell the third party accessories as MURATA https://www.nxp.com/products/wireless/secure-ultra-wideband-uwb/uwb-development-kit-murata-type2bp-evk:UWB-DEV-TYPE2BP-EVK to make it more easier in order to sell the evaluation board to the developers as opening the credit card channel to let developers make payment and buy it easier , instead of needing to send an inquiry , it is harder to get feedback , even me , have not gotten any feedback from murata after sending more than week to ask the information of the board🥺😥 , because there are many developers as me want to test the board with 3 antennas as murata has it
ps. hopefully , Apple and framework engineer will understand the voice of very tiny developer who loves Apple 😊🍏
Post not yet marked as solved
About Qorvo NI demo app , i am not so understanding about how azimuth and elevation angle are measured ,please let me know 🥺
during testing the Qorvo ni demo app with iphone11
sometime the 3d arrow moving so slow and sometimes got frozen about 10 seconds then slowly moving to point to the dwm3000evb and sometime does not aim correctly . I do not know why ? you know why ?? :face_with_raised_eyebrow: :thinking: even i carry the iphone11 vertically as the recommendation from nearby interaction framework
for azimuth and elevation angle , please correct my understanding
instead of the sun in the photo, it can replace sun with dwm3000evb and man is replaced by iphone11, you can imagine it out :slightly_smiling_face:
2.1 ) for azimuth , is the angle that measured North to the ideal line of sight that draw from iphone11 to dmw3000evb ? 🤔 as like the photo
2.2) for elevation angle , is measured from plane line (observer local plane ) to the ideal line of sight that draw from iphone11 to dwm3000evb ??🤔as like photo
Post not yet marked as solved
just need to access the location updates when app is killed by user
Post not yet marked as solved
If our UWB work with Channel 5, the iOS demo APP can connect.
If our UWB work with Channel 9, the iOS demo APP cannot connect.
Anyone can help me?
Post not yet marked as solved
When will apple release APIs to integrate support for AirTag in developer's apps?
Post not yet marked as solved
We anticipate utilizing many API's. Maps Static, Places, Geo-coding, Geo-location, Heat Utility, overlays, universal-cross platform map, etc.
2. We are developing a Dating Application, similar to Bumble, Tinder, and Hinge. However, our app will have a main feature that allows usage of a map.
Post not yet marked as solved
Can I modify the NearbyInteraction sample code on the Apple developer site (link below) for use in PoCs and final products?
(As a premise, UWB chipset is supplied from UWB chipset
manufacture who already or will have their chipset complete certification by Apple)
And are there any restrictions on its use?
https://developer.apple.com/documentation/nearbyinteraction/implementing_spatial_interactions_with_third-party_accessories