SECUREXSECURITY ENGINEERINGNVR 文档

通知 API

通知 API 用于移动推送或通知相关状态。发送前应验证用户/设备注册信息和服务器推送配置,失败时保留可诊断错误。

核心说明

本页内容按该功能本身整理,不再使用通用占位说明。以下项目均与当前主题直接相关。

设备令牌

FCM/APNs token 会变化,客户端必须支持刷新并上传新 token。

权限

设备系统通知权限被关闭时,服务器发送成功也不会显示。

去重

同一事件多次更新时应有去重/合并策略。

诊断

区分注册失败、Provider 失败、网络失败和客户端展示失败。

验证与排查

  • 修改或执行前记录当前版本/配置,以便回退。
  • 完成后同时检查 UI 状态和后端日志,不只看一个成功提示。
  • 如果问题只在单个摄像头/插件出现,先做最小范围对比,避免全局改动。

Notifications API

Notification APIs coordinate push/notification state. Validate device registration and server push configuration before sending.

Core behavior

This page is topic-specific rather than a generic placeholder.

Device token

Push tokens can rotate and must be refreshed.

Permission

OS notification permission can block display even after successful send.

Deduplication

Avoid duplicate pushes for repeated updates of the same event.

Diagnostics

Differentiate registration, provider, network and display failures.

Verification and troubleshooting

  • Record the current version/config before changes so rollback is possible.
  • Verify both UI state and backend logs after the change.
  • If only one camera/plugin is affected, isolate it before making global changes.

API de notificaciones

La API de notificaciones coordina push; valide registro del dispositivo y configuración del servidor.

Comportamiento

Esta página contiene contenido específico del tema, no un texto genérico.

Token

Los tokens pueden cambiar y deben actualizarse.

Permiso

El sistema operativo puede bloquear notificaciones.

Duplicados

Evite push repetido del mismo evento.

Diagnóstico

Distinga registro, proveedor, red y visualización.

Verificación y diagnóstico

  • Registre versión/configuración antes de cambiar para poder revertir.
  • Compruebe UI y logs del backend después.
  • Si afecta a una sola cámara/plugin, aíslelo antes de cambios globales.
输入关键词开始搜索