I'm making an app that receives push notifications from the server. I found some ways to do that.
SMS - Block incoming sms and pull them to the server.
Poll - Periodically checks the server.
There are two ways, but each one has its own limitations. SMS does not guarantee arrival time Poll eats away at the battery.
Is there a better way?
android alerts push
Google's answer to this question is
Android Cloud to Device Messaging Framework (deprecated)
Google Cloud Messaging(deprecated)
3.Firebase Cloud Messaging (https://firebase.google.com/docs/cloud-messaging/)
There is. But number 1 and 2 are currently defined, so you can use number 3 Firebase Cloud Messaging. It'll work fine on Android 2.2 and above.
1788 Uncaught (inpromise) Error on Electron: An object could not be cloned
1753 I want to run pyautogui without remote connection on Windows 10 in the cloud
1950 I want to connect to the webcam from WSL(ubuntu)
2564 I want to display multiple lines with FFmpeg subtitles.
3079 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
© 2026 OneMinuteCode. All rights reserved.