gpt4 book ai didi

android - 在设置中禁用后,推送通知是否会发送到 Android 手机?

转载 作者:太空狗 更新时间:2023-10-29 16:27:47 27 4
gpt4 key购买 nike

  • 在 Android 中,如果我们使用操作系统设置禁用应用通知,fcm/gcm 是否仍会向设备发送通知?

  • 如果发送到设备,通知是否会传递到应用程序?还是操作系统会阻止它?

  • device_token 是否失效?

我假设当我们禁用通知时,android 操作系统将这些设置传达给 fcm/gcm 服务器。

最佳答案

In Android, if we disable app notifications using the OS settings, will fcm/gcm still deliver the notification to the device?

是的,

If it is delivered to the device will the notification be passed onto the app? or does the OS block it?

是的,

Is the device_token invalidated?

没有。


“推送通知”,就 FCM/GCM 等而言,是与“应用通知”不同的概念。

系统设置中的“通知”屏幕仅显示允许或不允许哪些应用使用 NotificationManager 在系统托盘中弹出通知。这在系统进程的 NotificationManager 级别被阻止,并且不会与应用程序通信。推送通知可以简单地视为一种特定形式的网络通信,它与是否允许应用程序在托盘中显示通知无关。

GCM 仍将通过网络通信并向应用程序传递推送消息,操作系统不会阻止它(操作系统,又名 Android 的 system_server,它本身实际上不会不参与 GCM),您应用的 device_token 不会失效。

关于android - 在设置中禁用后,推送通知是否会发送到 Android 手机?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45720700/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com