How can I detect wifi off on iOS Unity
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 6.1k
- Forks
- 1.7k
- PR merge metrics
- No merged PRs in 30d
Description
First I keep the websocket connecting, then turn off wifi,
in Android, everything's ok. OnError event will be called.
But in iOS, nothing happens,
everything is well until i send a network message.
Question is how can i detect the wifi off ASAP?
Or the only way is that set a timer to send ping/pong every a few seconds?
Why this happens only in iOS?
Thanks a lot.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the websocket behavior described for Unity on iOS and Android, focusing on when the OnError event fires after Wi-Fi is disabled. The issue names no files or tests, so trace the connection and error-handling entry points before determining what behavior can be supported. Done requires a clear, reproducible detection outcome.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, ios, unity
- Domain
- mobile-dev, networking
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100