[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CBR41AEG61563ERNY8K5P8":3,"skill-same:01M6CBR41AEG61563ERNY8K5P8":66},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":17,"categories":18,"keywords":29,"publishedAt":31,"linkOnly":32,"markdownContent":33,"markdownBody":33,"frontMatter":34,"refName":35,"commitSha":36,"skillDirectory":37,"forksCount":15,"repositoryHtmlUrl":38,"repositoryHomepageUrl":7,"ownerHtmlUrl":39,"ownerBlogUrl":7,"ownerDescription":40,"updatedAt":41,"install":42,"resources":55},"01M6CBR41AEG61563ERNY8K5P8","03-ssot","单一事实源配置",null,"","devwinsoft\u002Fdevian","devwinsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F22570160?v=4","01M6C6RR8W05NH8NPKQNCE3Q72","maoshy","01M6C6RRDJ5TJJCZXRTY801YDH",0,"MIT","https:\u002F\u002Fgithub.com\u002Fdevwinsoft\u002Fdevian\u002Fblob\u002Fmain\u002Fskills\u002Fdevian-unity\u002F50-mobile-package\u002F52-push-system\u002F03-ssot\u002FSKILL.md",[19,24],{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":25,"categoryName":26,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8C36CP2J9CRK1B6PYRXVHPN","应用配置管理","SCENARIO","使用场景",[30],"03 ssot","2026-11-10 10:12:30",false,"# 03-ssot — 52-push-system\n\nStatus: ACTIVE\nAppliesTo: v10\n\n## SSOT 범위\n\n이 문서는 Push 시스템의 정본이다.\n\n- 토큰 저장 구조: `PushStorage`\n- 토픽 목록\u002F구독 상태\n- 로컬 알림 스케줄 스키마\n- Provider 인터페이스 계약: `IPushPlatformProvider`\n\n---\n\n## A. Provider Interface\n\n```csharp\npublic interface IPushPlatformProvider\n{\n    Task\u003CCommonResult> RequestPermissionAsync(CancellationToken ct);\n    Task\u003CCommonResult\u003Cstring>> GetTokenAsync(CancellationToken ct);\n    Task\u003CCommonResult> SubscribeTopicAsync(string topicId, CancellationToken ct);\n    Task\u003CCommonResult> UnsubscribeTopicAsync(string topicId, CancellationToken ct);\n    Task\u003CCommonResult> ScheduleLocalNotificationAsync(LocalNotificationData data, CancellationToken ct);\n    Task\u003CCommonResult> CancelLocalNotificationAsync(string notificationId, CancellationToken ct);\n    Task\u003CCommonResult> CancelAllLocalNotificationsAsync(CancellationToken ct);\n}\n```\n\n- `#if UNITY_IOS` → `PushProviderApple`\n- `#elif UNITY_ANDROID` → `PushProviderGoogle`\n- `else` → `PushProviderUnsupported` (즉시 `PUSH_UNSUPPORTED_PLATFORM` 반환)\n\n---\n\n## B. PushStorage\n\n`PushStorage`는 `PushManager`가 소유하며, SaveData 로컬\u002F클라우드 저장 대상이다.\n\n저장 필드:\n\n| field | type | note |\n|-------|------|------|\n| `schemaVersion` | int | 스키마 버전 |\n| `token` | string | 마지막 등록 성공 토큰 |\n| `tokenUpdatedAt` | string | 토큰 갱신 시각 (ISO 8601) |\n| `subscribedTopics` | `List\u003Cstring>` | 구독 중인 토픽 ID 목록 |\n| `scheduledNotifications` | `List\u003CScheduledNotificationEntry>` | 등록된 로컬 알림 목록 |\n\n`ScheduledNotificationEntry`:\n\n| field | type | note |\n|-------|------|------|\n| `notificationId` | string | 고유 알림 ID |\n| `title` | string | 알림 제목 |\n| `body` | string | 알림 본문 |\n| `fireAt` | string | 발화 시각 (ISO 8601) |\n| `repeatInterval` | string | 반복 주기 (none\u002Fdaily\u002Fweekly) |\n| `payload` | string | 커스텀 페이로드 (JSON) |\n\n---\n\n## C. LocalNotificationData (DTO)\n\n```csharp\npublic class LocalNotificationData\n{\n    public string NotificationId;\n    public string Title;\n    public string Body;\n    public DateTime FireAt;\n    public RepeatInterval Repeat;   \u002F\u002F None, Daily, Weekly\n    public string Payload;          \u002F\u002F custom JSON string\n}\n```\n\n---\n\n## D. Topic Rules\n\n- FCM 토픽 ID = `PUSH_REMOTE.PushId` (테이블 pk). 예: `\"event_korean\"`, `\"test_english\"`.\n- 구독\u002F해제 성공 시 `PushStorage.subscribedTopics`를 즉시 동기화한다.\n- 초기화 시 `PushStorage.subscribedTopics`를 기반으로 재구독을 시도한다.\n\n---\n\n## E. Token Rules\n\n- 초기화 시 `GetTokenAsync`로 FCM 토큰을 획득한다.\n- 획득한 토큰은 `PushStorage.token`에 로컬 캐시한다 (디버깅\u002F진단 용도).\n- 서버 토큰 등록은 하지 않는다 — 모든 원격 푸시는 토픽 기반 발송만 사용한다.\n- FCM 토큰은 토픽 구독\u002F해제의 내부 식별자로 FCM 클라이언트 SDK가 자동 사용한다.\n\n---\n\n## F. Table-driven Topic Subscription\n\n- `InitializeAsync` 성공 시, `TB_PUSH_REMOTE` 테이블에서 `MobileApplication.Instance.DefaultLanguage`에 해당하는 토픽을 자동 구독한다.\n- `TB_PUSH_REMOTE`의 GroupKey = `Language` (OperationTable.xlsx PUSH_REMOTE 시트, Operation 도메인, `group:true`).\n- `TB_PUSH_REMOTE.GetByGroup(DefaultLanguage.ToString())` → 반환된 행의 `PushId`를 FCM 토픽으로 구독한다.\n- **IsTest 필터링:**\n  - `Debug.isDebugBuild == true` (Development Build): 모든 행 구독 (IsTest 무관)\n  - `Debug.isDebugBuild == false` (Release Build): `IsTest == false` 인 행만 구독\n- 이미 `PushStorage.subscribedTopics`에 존재하는 토픽은 중복 구독하지 않는다.\n- `TB_PUSH_REMOTE`가 로드되지 않았으면 (`TB_PUSH_REMOTE.IsLoaded == false`) skip한다.\n\n---\n\n## G. Table-driven Local Notification\n\n- `ScheduleLocalNotificationAsync(string pushId, CDateTime fireAt, ct)` — pushId로 `TB_PUSH_LOCAL` 조회 후 로컬 알림 등록.\n- `TB_PUSH_LOCAL`은 OperationTable.xlsx PUSH_LOCAL 시트, Operation 도메인. group 없음.\n- 테이블 스키마:\n\n| 컬럼 | 타입 | 옵션 | 설명 |\n|------|------|------|------|\n| `PushId` | string | pk | 알림 고유 ID (= `LocalNotificationData.NotificationId`) |\n| `TitleTextId` | string | | `ST_TEXT.Get(TitleTextId)` → 로컬라이즈 제목 |\n| `BodyTextId` | string | | `ST_TEXT.Get(BodyTextId)` → 로컬라이즈 본문 |\n| `IsTest` | bool | | dev\u002Frelease 필터 |\n\n- **외부에서 `LocalNotificationData`를 직접 전달하지 않는다.** pushId를 받아 테이블에서 조회한다.\n- `FireAt`은 호출자가 `CDateTime`(서버 시간 기준)으로 전달한다. 테이블 컬럼이 아니다.\n- `Repeat`은 `RepeatInterval.None` 고정. 테이블 컬럼이 아니다.\n- **IsTest 필터링:** §F와 동일 규칙. `!Debug.isDebugBuild && row.IsTest` → `PUSH_TEST_BLOCKED` 반환.\n- `TB_PUSH_LOCAL`이 로드되지 않았으면 `PUSH_TABLE_NOT_LOADED` 반환.\n- pushId 조회 실패 시 `PUSH_LOCAL_NOT_FOUND` 반환.\n- 중복 notificationId 시 `PUSH_DUPLICATE_NOTIFICATION` 반환.\n\n---\n\n## H. Notification Icon 정책\n\n- **Android**: 단일 기본 아이콘 사용. Provider 내부 상수로 처리 (`LocalNotificationData`에 아이콘 필드 없음).\n  - `DefaultSmallIcon = \"icon_0\"` — 상태바\u002F알림 헤더 (모노크롬 drawable)\n  - `DefaultLargeIcon = \"icon_1\"` — 알림 확장 시 우측 큰 이미지 (풀컬러 drawable)\n  - Unity Mobile Notifications 패키지의 NotificationsSettings.asset에 각각 등록 필요.\n- **iOS**: 시스템이 앱 아이콘을 강제 사용. 커스텀 아이콘 설정 불가. 코드 변경 없음.\n\n---\n\n## I. 초기화 시 Local Push Clear\n\n- `InitializeAsync` 시작 시(권한 요청 전) 기존 로컬 알림을 모두 취소한다.\n- `_provider.CancelAllLocalNotificationsAsync(ct)` 호출 + `_storage.scheduledNotifications.Clear()`.\n- 앱 재시작마다 깨끗한 상태에서 시작하기 위한 정책이다.\n\n---\n\n## Related\n\n- [10-push-manager](..\u002F10-push-manager\u002FSKILL.md)\n- [11-push-provider-apple](..\u002F11-push-provider-apple\u002FSKILL.md)\n- [12-push-provider-google](..\u002F12-push-provider-google\u002FSKILL.md)\n",{},"main","8cb5bd877a3a7004867d2f55697cb9e4ff2f1734","skills\u002Fdevian-unity\u002F50-mobile-package\u002F52-push-system\u002F03-ssot","https:\u002F\u002Fgithub.com\u002Fdevwinsoft\u002Fdevian","https:\u002F\u002Fgithub.com\u002Fdevwinsoft","Kim Hyong Joon","2026-04-12 18:44:10",{"source":9,"skillName":5,"commands":43,"prompt":53,"zipAvailable":54},[44,47,50],{"tool":45,"command":46},"npx","npx skills add devwinsoft\u002Fdevian --skill 03-ssot",{"tool":48,"command":49},"bunx","bunx skills add devwinsoft\u002Fdevian --skill 03-ssot",{"tool":51,"command":52},"pnpm","pnpm dlx skills add devwinsoft\u002Fdevian --skill 03-ssot","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdevwinsoft\u002Fdevian\u002Fblob\u002Fmain\u002Fskills\u002Fdevian-unity\u002F50-mobile-package\u002F52-push-system\u002F03-ssot\u002FSKILL.md",true,[56,62],{"path":57,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":60,"sourceHtmlUrl":61},"SOURCE.md","REFERENCE","参考文档",188,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fdefi\u002Falienbase-base-yields\u002FSOURCE.md",{"path":63,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":64,"sourceHtmlUrl":65},"TRUST.auto.yaml",2217,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fdefi\u002Falienbase-base-yields\u002FTRUST.auto.yaml",[67,80,95,108,122,134],{"skillNo":68,"name":69,"nameZh":70,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":71,"categories":72,"keywords":79,"publishedAt":31},"01M6CBX3K2JJV38ANHVGCAT8A0","devian","Devian 工具","https:\u002F\u002Fgithub.com\u002Fdevwinsoft\u002Fdevian\u002Fblob\u002Fmain\u002Fskills\u002Fdevian\u002FSKILL.md",[73,76],{"categoryNo":74,"categoryName":75,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BS5011KJDVSRXG1DC4P666","普通用户",{"categoryNo":77,"categoryName":78,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BSYDSNXQT2W2GMZGF0ZHH4","示例与演示技能",[69],{"skillNo":81,"name":82,"nameZh":83,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":84,"categories":85,"keywords":92,"publishedAt":31},"01M6CBX210BFMM8AMN770J9WY8","90-project-archive","项目归档管理","https:\u002F\u002Fgithub.com\u002Fdevwinsoft\u002Fdevian\u002Fblob\u002Fmain\u002Fskills\u002Fdevian\u002F80-tools\u002F90-project-archive\u002FSKILL.md",[86,89],{"categoryNo":87,"categoryName":88,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BRFRAYBCBW9WKDY9TCSHY3","知识管理与沉淀",{"categoryNo":90,"categoryName":91,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8C31AVFVV99RWJEGF9PS85F","项目经理",[93,94],"archive","90 project archive",{"skillNo":96,"name":97,"nameZh":98,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":99,"categories":100,"keywords":105,"publishedAt":31},"01M6CBWZSGRR9R3YJZB3177667","30-env-management","开发环境管理","https:\u002F\u002Fgithub.com\u002Fdevwinsoft\u002Fdevian\u002Fblob\u002Fmain\u002Fskills\u002Fdevian\u002F80-tools\u002F30-env-management\u002FSKILL.md",[101,102],{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},{"categoryNo":103,"categoryName":104,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BSTR9G4A4GZ0VB2DFN9490","开发环境与工具链管理",[106,107],"management","30 env management",{"skillNo":109,"name":110,"nameZh":111,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":112,"categories":113,"keywords":118,"publishedAt":31},"01M6CBWYD3TGWBQV7V35551THF","19-page-push-send","页面推送发送","https:\u002F\u002Fgithub.com\u002Fdevwinsoft\u002Fdevian\u002Fblob\u002Fmain\u002Fskills\u002Fdevian\u002F80-tools\u002F20-operation\u002F19-page-push-send\u002FSKILL.md",[114,115],{"categoryNo":74,"categoryName":75,"taxonomyType":22,"taxonomyTypeDesc":23},{"categoryNo":116,"categoryName":117,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8CGZP65MS9PDWJCV0TVEY59","推送通知管理与集成",[119,120,121],"push","page","19 page push send",{"skillNo":123,"name":124,"nameZh":125,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":126,"categories":127,"keywords":132,"publishedAt":31},"01M6CBWWRQ05A7604GHJKTPJTF","18-page-savedata","页面数据保存","https:\u002F\u002Fgithub.com\u002Fdevwinsoft\u002Fdevian\u002Fblob\u002Fmain\u002Fskills\u002Fdevian\u002F80-tools\u002F20-operation\u002F18-page-savedata\u002FSKILL.md",[128,129],{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},{"categoryNo":130,"categoryName":131,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8C7VTEAGB85XZH74QPB0QY6","网页截图与存档",[120,133],"18 page savedata",{"skillNo":135,"name":136,"nameZh":137,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":138,"categories":139,"keywords":144,"publishedAt":31},"01M6CBWVH4S2VF1V7B2GBTESCT","17-page-deobfuscate","页面内容反混淆","https:\u002F\u002Fgithub.com\u002Fdevwinsoft\u002Fdevian\u002Fblob\u002Fmain\u002Fskills\u002Fdevian\u002F80-tools\u002F20-operation\u002F17-page-deobfuscate\u002FSKILL.md",[140,141],{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},{"categoryNo":142,"categoryName":143,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8CA8DP92Z0Y3VYP9HEK5HK7","逆向工程分析",[120,145],"17 page deobfuscate"]