I used NIPeekaboo to check whether the Nearby Interaction connection is working or not in IOS14.2 beta.
However, I couldn't get the monkey display and the distance after running app on the device. Instead, I got these errors that show the connection fail.
2020-07-08 17:32:03.474255+0900 NIPeekaboo[554:71895] libMobileGestalt MobileGestaltCache.c:166: Cache loaded with 4563 pre-cached in CacheData and 52 items in CacheExtra.
2020-07-08 17:32:57.357895+0900 NIPeekaboo[554:71893] [connection] nwresolverstartquerytimerblockinvoke [C1.3] Query fired: did not receive all answers in time for 5fca9e54-f977-49da-95b7-6e0fdf450d26.local.:50270@awdl0
2020-07-08 17:33:05.894152+0900 NIPeekaboo[554:71993] [GCKSession] Not in connected state, so giving up for participant [735EC744] on channel [0].
2020-07-08 17:33:05.905915+0900 NIPeekaboo[554:71993] [GCKSession] Not in connected state, so giving up for participant [735EC744] on channel [1].
2020-07-08 17:33:05.915488+0900 NIPeekaboo[554:71993] [GCKSession] Not in connected state, so giving up for participant [735EC744] on channel [2].
2020-07-08 17:33:05.922042+0900 NIPeekaboo[554:71993] [GCKSession] Not in connected state, so giving up for participant [735EC744] on channel [3].
2020-07-08 17:33:05.927487+0900 NIPeekaboo[554:71993] [GCKSession] Not in connected state, so giving up for participant [735EC744] on channel [6].
2020-07-08 17:33:05.931903+0900 NIPeekaboo[554:71993] [GCKSession] Not in connected state, so giving up for participant [735EC744] on channel [7].
The process that I did to check the connection was:
Moreover, is there anything that I need to fix in the code or that I need to set before doing the test?
However, I couldn't get the monkey display and the distance after running app on the device. Instead, I got these errors that show the connection fail.
2020-07-08 17:32:03.474255+0900 NIPeekaboo[554:71895] libMobileGestalt MobileGestaltCache.c:166: Cache loaded with 4563 pre-cached in CacheData and 52 items in CacheExtra.
2020-07-08 17:32:57.357895+0900 NIPeekaboo[554:71893] [connection] nwresolverstartquerytimerblockinvoke [C1.3] Query fired: did not receive all answers in time for 5fca9e54-f977-49da-95b7-6e0fdf450d26.local.:50270@awdl0
2020-07-08 17:33:05.894152+0900 NIPeekaboo[554:71993] [GCKSession] Not in connected state, so giving up for participant [735EC744] on channel [0].
2020-07-08 17:33:05.905915+0900 NIPeekaboo[554:71993] [GCKSession] Not in connected state, so giving up for participant [735EC744] on channel [1].
2020-07-08 17:33:05.915488+0900 NIPeekaboo[554:71993] [GCKSession] Not in connected state, so giving up for participant [735EC744] on channel [2].
2020-07-08 17:33:05.922042+0900 NIPeekaboo[554:71993] [GCKSession] Not in connected state, so giving up for participant [735EC744] on channel [3].
2020-07-08 17:33:05.927487+0900 NIPeekaboo[554:71993] [GCKSession] Not in connected state, so giving up for participant [735EC744] on channel [6].
2020-07-08 17:33:05.931903+0900 NIPeekaboo[554:71993] [GCKSession] Not in connected state, so giving up for participant [735EC744] on channel [7].
The process that I did to check the connection was:
ran NIPeekaboo in two different devices.
got a pop up permission prompt for finding nearby devices and selected 'Allow Once'.
Text on the middle of the black screen turned to the name of the other device (but still couldn't get the monkey and the distance)
Waited about few seconds and the text on the middle changed to 'peer timeout'.
Moreover, is there anything that I need to fix in the code or that I need to set before doing the test?