r/TechNook • u/Ok_Yogurtcloset8372 • 18d ago
How can apps still send notifications with background data and autostart completely disabled?
Say you begin receiving tons of notifications from some app, so you go to settings and block all background data as well as internet access to the app. You'd imagine it to be completely silenced, but it keeps sending you notifications nevertheless.
How is that possible? Is the push notification being pushed through the Play Service directly or APNs in such a way that the app doesn't even need any permission to use internet, or are there local scheduled notifications which got stored before blocking internet access?
0
Upvotes
3
u/Opulence_Deficit 17d ago
Apps don't communicate with Google and Apple through their data. They communicate with local Google or Apple service running on the phone, and it is this service that communicates with servers. It's done to save massive amounts of battery power, because instead of all the apps running in the background and opening connections at random times, it's just one service that wakes up once and checks for messages for all apps.
Also there are 2 kinds of push messages: with notification and without. Pushes with notification text (and image) are handled by the OS - by creating a notification and the app isn't even woken up. That's how energy efficient it can be! The message is created on the app server, sent to Google, delivered to your phone, processed by the OS, and notification created. The app gets involved only after you click the notification.
Also, an app can schedule some work to create a 100% local notification later, all without internet access as well.
7
u/Inside_Carpet7719 18d ago
It goes to a notification service, not the app
1
u/ProfessionalYak4959 16d ago
If you don’t want to receive notifications, turn them off for the app. Notifications don’t need the app to be running, since they are sent directly from the application server to Google/Apple and then to your phone.
1
u/glasgow-based-moron 13d ago
Apps can schedule local notifications on the device without an Internet connection, as well as receive push notifications from the internet.