Wifi Aware iOS devices authentication fails after a period of time

After pairing and having subscribed to a service, and even after having exchanged messages, the service fails after a period of time and both devices need to pair again.

Answered by DTS Engineer in 858510022

If you can reproduce the problem with our sample code then the path forward here is clear: File a bug against Wi-Fi Aware explaining how to reproduce the issue with our sample.

When you file a bug you’ll be asked to include a sysdiagnose log. Trigger that log immediately after seeing the problem. And our Bug Reporting > Profiles and Logs page has a Wi-Fi for iOS/iPadOS entry that explains how to enable additional Wi-Fi specific logging.

Please post your bug number, just for the record.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Interesting. Do you see the same problem with our sample code?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Accepted Answer

I can validate that behavior. Basically following all that there is on the next few pages -> https://developer.apple.com/documentation/wifiaware/building-peer-to-peer-apps after one device become subscriber and the other publisher in a while the same application will want again devices to pair with pin otherwise they will never connect.

Thank you Niki for highlighting the need for this bug to be fixed.

If you can reproduce the problem with our sample code then the path forward here is clear: File a bug against Wi-Fi Aware explaining how to reproduce the issue with our sample.

When you file a bug you’ll be asked to include a sysdiagnose log. Trigger that log immediately after seeing the problem. And our Bug Reporting > Profiles and Logs page has a Wi-Fi for iOS/iPadOS entry that explains how to enable additional Wi-Fi specific logging.

Please post your bug number, just for the record.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Hey @DTS Engineer there isn't a sample code at this stage in the documentation.

There is only the documentation explaining how to use Wi-Fi Aware on the Apple platform.

Can you provide links to a real sample application to just run and test on our end. Would be happy to reproduce it with your sample code.

Right now the documentation looks a bit unfinished with missing states between what you actually see in XCode and the way you need to build a real application.

Even if that's the case i have been able to build one on my end and test the flow and the current API.

I’m not sure what you’re asking for here. Based on your contribution to other threads (like here), I get the feeling that you’re looking for a sample that shows how to communicate between iOS and Android apps. We don’t have such a sample, and it’s not something I’m create for you here on the forums. If you’d like to see that, please do file an enhancement request for it. And post your bug number, just for the record.

If I’ve misunderstood your message, I’d appreciate more details on what you’re looking for.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Hey @DTS Engineer no a sample project in general. The documentation simply can't be called a project.

I suppose a sample application project showing iOS<>iOS will be fine too but a complete project which can be used.

I am asking for such a project since it would be much easier to replicate issues on Apple end with a project that was already built by Apple. We can easily drop in issues and discuss the exact places. And since you requested that i suppose it's a good time to touch on this.

no a sample project in general.

I’m confused. We have an iOS-to-iOS sample, namely Building peer-to-peer apps. And I know you know about it because you referenced it in your earlier message on this thread.

Did you perhaps miss the Download button at the top of that page?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Wifi Aware iOS devices authentication fails after a period of time
 
 
Q