A
Android Central Question
Here is the use case:
- the user launches the app and grants permission, the app connects to the server
- at some point in the future, the server sends a request to the app
- the app, regardless of whether it is running or not in the foreground or background, wakes up to run this code
Here are some options I have explored which I am unsure about:
- server sent events
- websockets
- push notifications
Is there a reliable and safe way to do this on android, whether it's Kotlin or Flutter? Can you provide examples or documentation?
- the user launches the app and grants permission, the app connects to the server
- at some point in the future, the server sends a request to the app
- the app, regardless of whether it is running or not in the foreground or background, wakes up to run this code
Here are some options I have explored which I am unsure about:
- server sent events
- websockets
- push notifications
Is there a reliable and safe way to do this on android, whether it's Kotlin or Flutter? Can you provide examples or documentation?