I have found that when the wifi on iOS closed by the router, no OnDisconnection event fired of the client.
How can I process it?
How to process a wifi closed exception?
-
- Posts: 29
- Joined: 28 Feb 2012, 08:15
- A51Integrated
- Posts: 240
- Joined: 03 Jan 2012, 19:55
- Location: Toronto, Canada
- Contact:
Re: How to process a wifi closed exception?
The event should be onConnectionLost.
Code: Select all
-(void)onConnectionLost:(SFSEvent *)evt
{
NSLog(@"Ouch, connection was lost. Reason: %@", [evt.params objectForKey:@"reason"]);
}
A51 Integrated
http://a51integrated.com / +1 416-703-2300
http://a51integrated.com / +1 416-703-2300
-
- Posts: 29
- Joined: 28 Feb 2012, 08:15
Re: How to process a wifi closed exception?
I have certainly processed the CONNECTION_LOST event.
This event never fired When wifi was closed on iPad.
That's why I asked this question.
This event never fired When wifi was closed on iPad.
That's why I asked this question.
-
- Posts: 29
- Joined: 28 Feb 2012, 08:15
Re: How to process a wifi closed exception?
Additionally, I run my client on unity player iOS version.
It's not an Objective-C app.
It's not an Objective-C app.
- A51Integrated
- Posts: 240
- Joined: 03 Jan 2012, 19:55
- Location: Toronto, Canada
- Contact:
Re: How to process a wifi closed exception?
You'll probably want to ask the question then in the Unity /.NET forum.
Return to “SFS2X iPhone / iPad / OSX API”
Who is online
Users browsing this forum: No registered users and 22 guests