0

When we disable push notifications at app level:

  1. Does the OS automatically unregister the app from GCM/FCM ? (i.e) Will the GCM/FCM stop sending messages to the client for that app.

  2. Will the push event listener code block be executed (minus UI tray) even when push is off at app level ?

Ravi
  • 3,719
  • 6
  • 28
  • 40
  • "disable push notifications at app level" please clarify what this is. Do you mean silencing a notification channel? – Tim Nov 05 '18 at 16:00
  • I meant Settings > Apps & Notifications > Notifications > App Notifications > [Choose an app] > Toggle the On to Off – Ravi Nov 05 '18 at 16:18

1 Answers1

0
  1. Does the OS automatically unregister the app from GCM/FCM ? (i.e) Will the GCM/FCM stop sending messages to the client for that app.

Yes. The GCM/FCM server doesn't determine if the device has disabled notifications for the corresponding app. So long as the device was targeted for the message, GCM/FCM will deliver the message.

  1. Will the push event listener code block be executed (minus UI tray) even when push is off at app level ?

FCM for Android works differently depending the message payload type you sent. However, depending on the device, usually when Notifications are disabled, regardless of notification type, it would be blocked by the OS.

For more infos:

Tim
  • 41,901
  • 18
  • 127
  • 145
Jessica Rodriguez
  • 2,899
  • 1
  • 12
  • 27