In Android, if we disable app notifications using the OS settings,
will fcm/gcm still deliver the notification to the device?
Yes,
If it is delivered to the device will the notification be passed onto
the app? or does the OS block it?
Yes,
Is the device_token invalidated?
No.
"Push Notifications", in terms of FCM/GCM/etc, are a different concept from "App Notifications".
The "Notifications" screen in System Settings is only about what apps are, or are not, allowed to use NotificationManager
to pop up notifications in the system tray. That's blocked at the NotificationManager
level in the system process, and isn't communicated to the application. Push Notifications can be thought of as simply a specific form of network communication, and that is not tied to whether or not the app is allowed to display a notification in the tray.
GCM will still communicate over the network and deliver push messages to the application, the OS will not block it (the OS, aka Android's system_server
, itself actually doesn't get involved in GCM), and your app's device_token
will not be invalidated.