You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an issue is when im testing the app in simulator, let me explain whats happening
When my app start´s I call a NSObject that handle my connection, and it's a shared object (static), so it handle all my connection thru all views.
Got a protocol to determinate when a message comes in then dispatch to the active view (subscribed one).
When I'm in simulator and minimize the App the application still connected to socket, and receive messages etc.. but when my app run into device it lost the connection (not showing message of disconnected) but simply cannot receive messages.
Any idea whats happening?
Thanks in advance.
The text was updated successfully, but these errors were encountered:
iOS will close your socket connection when the app is running in background mode. You should gracefully close the connection when it enters the background (via AppDelegate) and then reconnect the socket whe the app comes back into the foreground.
Yeah @pblondin, thats what happening in Device but not in Simulator, anyways I'm going to improve this with push notifications on server side., not what I want but have no choise.
Hello there,
I have an issue is when im testing the app in simulator, let me explain whats happening
When my app start´s I call a NSObject that handle my connection, and it's a shared object (static), so it handle all my connection thru all views.
Got a protocol to determinate when a message comes in then dispatch to the active view (subscribed one).
When I'm in simulator and minimize the App the application still connected to socket, and receive messages etc.. but when my app run into device it lost the connection (not showing message of disconnected) but simply cannot receive messages.
Any idea whats happening?
Thanks in advance.
The text was updated successfully, but these errors were encountered: