收口移动角标响应边界

将 Expo 角标成功响应包装收口到 badge 模块

让移动 dispatch 只委托角标请求

同步移动壳配置门禁和共享记忆
This commit is contained in:
2026-06-20 00:31:22 +08:00
parent d780d354ba
commit 982a9ed55e
4 changed files with 11 additions and 7 deletions
+4 -1
View File
@@ -1896,7 +1896,8 @@ if (mobileCapabilitySet.has('app.setBadgeCount')) {
throw new Error('Android mobile shell base capabilities must not include app.setBadgeCount');
}
if (
!dispatchSource.includes('setMobileAppBadgeCount(request.payload)') ||
!dispatchSource.includes('setMobileAppBadgeCount(request)') ||
dispatchSource.includes('ok(request, setMobileAppBadgeCount') ||
dispatchSource.includes('PushNotificationIOS') ||
dispatchSource.includes('normalizeHostBridgeBadgeCount') ||
dispatchSource.includes('HOST_BRIDGE_BADGE_COUNT_MAX')
@@ -1905,8 +1906,10 @@ if (
}
for (const snippet of [
'HOST_BRIDGE_BADGE_COUNT_MAX',
'request: HostBridgeRequest',
'normalizeHostBridgeBadgeCount',
'PushNotificationIOS.setApplicationIconBadgeNumber(count)',
'ok(request, true)',
'app badge count is only supported on iOS mobile shell',
]) {
if (!badgeSource.includes(snippet)) {