I’m building a chat application using Ionic and Node.JS.
Currently, when the app is opened the node server will flag the user as ‘Online’ and any other ‘Online’ users can send each other messages and audio calls. However if a user navigates out of the app and closes it, the user is then flagged as ‘Offline’ if an Online user tries to msg an Offline user the msg will not go through or the notification will not send.
My question is, how can I keep my users ‘Online’ forever? Making it so the app cannot close completely. That way the network connections stay open and messages + notifications will still be sent and received. is there a plugin I can use for this?