锁定移动壳通知投递失败响应

移动壳通知通道创建失败返回稳定错误

移动壳通知调度失败返回稳定错误

移动壳配置检查补充通知投递失败边界反查
This commit is contained in:
2026-06-20 14:22:45 +08:00
parent 003d3240e3
commit e0d519686b
3 changed files with 56 additions and 16 deletions
@@ -1952,6 +1952,7 @@ for (const notificationSnippet of [
'normalizeHostBridgeLocalNotification(request.payload)',
"invalidRequest('title is required')",
"message: 'notification permission unavailable'",
"message: 'notification delivery unavailable'",
'showMobileLocalNotification(notification)',
'ok(request, await showMobileLocalNotification(notification))',
'HOST_BRIDGE_LOCAL_NOTIFICATION_DELIVERED_TO_SYSTEM_RESULT',
@@ -1964,7 +1965,10 @@ for (const notificationSnippet of [
for (const snippet of [
'rejects delivery when current permission lookup is unavailable',
'rejects delivery when permission request is unavailable',
'maps Android channel setup failures to stable delivery errors',
'maps native notification schedule failures to stable delivery errors',
"message: 'notification permission unavailable'",
"message: 'notification delivery unavailable'",
'expect(Notifications.setNotificationChannelAsync).not.toHaveBeenCalled()',
'expect(Notifications.scheduleNotificationAsync).not.toHaveBeenCalled()',
]) {