Socket io efficiency issue without app running in background

I manage to use ionic to trigger to my dashboard app using But I doubt it will work 100% of the time because the user might go out of the app or the app is running in the background. Will the connection of socket io be restored automatically ? or I have to reconnect again?