Opening a closed application based on events from network

34 Views Asked by At

this is my issue:I am developing an emergency app where real time data is important, I have a backend running socket.io, and the client is an android device. Every time the backend emits a new emergency, it should be displayed for the client if the app is opened, or renders the activity (opens the application) if it's closed. From what I read in socket.io: Socket.IO is not meant to be used as a background service for mobile applications.(source). And even if I try it, there are a lot of restriction that can make the app not work as needed (exp: time delay…) My question, is there a way in Android to open/run the application based on events coming from network? cordially,

0

There are 0 best solutions below