native-update 3.1.2 → 3.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AI-INTEGRATION-GUIDE.md +15 -10
- package/Readme.md +35 -35
- package/android/src/main/java/com/aoneahsan/nativeupdate/LiveUpdatePlugin.kt +88 -12
- package/android/src/main/java/com/aoneahsan/nativeupdate/NativeUpdatePlugin.kt +45 -18
- package/dist/esm/definitions.d.ts +8 -0
- package/dist/esm/plugin.js +16 -2
- package/dist/plugin.cjs.js +1 -1
- package/dist/plugin.esm.js +1 -1
- package/dist/plugin.js +2 -2
- package/docs/CHANGELOG.md +73 -0
- package/docs/KNOWN_LIMITATIONS.md +2 -2
- package/docs/MIGRATION.md +1 -1
- package/ios/Plugin/LiveUpdate/LiveUpdatePlugin.swift +64 -8
- package/ios/Plugin/NativeUpdatePlugin.swift +39 -13
- package/package.json +8 -3
- package/docs/AGENTS.md +0 -47
- package/docs/APP_REVIEW_GUIDE.md +0 -768
- package/docs/BUNDLE_SIGNING.md +0 -277
- package/docs/CLAUDE.md +0 -110
- package/docs/COMPREHENSIVE_AUDIT_REPORT.md +0 -526
- package/docs/DEPLOY_NOTES.md +0 -116
- package/docs/EXAMPLE_APPS_SIMPLIFICATION_PLAN.md +0 -384
- package/docs/EXAMPLE_APPS_SIMPLIFICATION_TRACKER.md +0 -390
- package/docs/LIVE_UPDATES_GUIDE.md +0 -675
- package/docs/MANUAL-TASKS.md +0 -30
- package/docs/MARKETING_WEBSITE_TRACKER.md +0 -677
- package/docs/NATIVE_UPDATES_GUIDE.md +0 -695
- package/docs/PACKAGES.md +0 -167
- package/docs/PERFORMANCE.md +0 -110
- package/docs/PROJECT_COMPLETION_TRACKER.md +0 -411
- package/docs/QUICK_START.md +0 -595
- package/docs/README.md +0 -130
- package/docs/REMAINING_FEATURES.md +0 -192
- package/docs/ROADMAP.md +0 -295
- package/docs/SECURITY-IF-REPO-PUBLIC.md +0 -232
- package/docs/SECURITY.md +0 -356
- package/docs/TESTING_REQUIREMENTS.md +0 -201
- package/docs/ai-knowledge-base/00-project-profile.md +0 -38
- package/docs/ai-knowledge-base/01-features.md +0 -46
- package/docs/ai-knowledge-base/02-routes.md +0 -72
- package/docs/ai-knowledge-base/03-tech-stack.md +0 -57
- package/docs/ai-knowledge-base/README.md +0 -23
- package/docs/analytics-tracking.md +0 -37
- package/docs/api/API.md +0 -558
- package/docs/api/FEATURES.md +0 -414
- package/docs/api/app-review-api.md +0 -239
- package/docs/api/app-update-api.md +0 -154
- package/docs/api/background-update-api.md +0 -170
- package/docs/api/events-api.md +0 -323
- package/docs/api/live-update-api.md +0 -258
- package/docs/archive/MARKETING_WEBSITE_PLAN.md +0 -659
- package/docs/background-updates.md +0 -392
- package/docs/capacitor-official-plugins.md +0 -46
- package/docs/capawesome-plugins.md +0 -29
- package/docs/cli-reference.md +0 -321
- package/docs/deployment/HOSTINGER_DEPLOY.md +0 -370
- package/docs/deployment/PRODUCTION-DEPLOY-CHECKLIST.md +0 -184
- package/docs/docs-site/plan.md +0 -201
- package/docs/docs-site/scope.md +0 -127
- package/docs/docs-site/tracker.json +0 -235
- package/docs/error-handling-tracking.md +0 -37
- package/docs/examples/advanced-scenarios.md +0 -394
- package/docs/examples/android-manifest-example.xml +0 -77
- package/docs/examples/basic-usage.md +0 -206
- package/docs/examples/node-express-backend-example.md +0 -28
- package/docs/examples/react-capacitor-example.md +0 -29
- package/docs/features/app-reviews.md +0 -975
- package/docs/features/app-updates.md +0 -785
- package/docs/features/e2e-full-verification/00-overview.md +0 -99
- package/docs/features/e2e-full-verification/00-tracker.json +0 -284
- package/docs/features/e2e-full-verification/phase01-backend-schema-fixes.md +0 -183
- package/docs/features/e2e-full-verification/phase02-test-auth.md +0 -176
- package/docs/features/e2e-full-verification/phase03-api-test-coverage.md +0 -63
- package/docs/features/e2e-full-verification/phase04-frontend-package-contract-audit.md +0 -73
- package/docs/features/e2e-full-verification/phase05-browser-e2e-matrix.md +0 -69
- package/docs/features/e2e-full-verification/phase06-deploy-prod-smoke.md +0 -51
- package/docs/features/e2e-full-verification/results/phase01-drift-report.md +0 -50
- package/docs/features/e2e-full-verification/results/phase03-coverage-matrix.md +0 -215
- package/docs/features/e2e-full-verification/results/phase04-frontend-contract.md +0 -139
- package/docs/features/e2e-full-verification/results/phase05-e2e-results.md +0 -99
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-01-dashboard.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-02-signup.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-03-settings-persisted.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-04a-app-created.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-04b-duplicate-bundle-422.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-05-plan-limit-403.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-08a-upload-graceful-fail.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-08b-builds-list.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-10-rollout-25pct.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-11-analytics.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-12-drive-disconnected.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-13-pricing.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-14-isolation-403.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-15a-admin-overview.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-15b-regular-user-admin-redirect.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-16a-delete-dialog.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-17-mobile-375.png +0 -0
- package/docs/features/e2e-full-verification/results/route-list.json +0 -1
- package/docs/features/laravel-nova-backend/ASSESSMENT-SUMMARY.md +0 -96
- package/docs/features/laravel-nova-backend/IMPLEMENTATION-PLAN.md +0 -504
- package/docs/features/laravel-nova-backend/progress-tracker.json +0 -184
- package/docs/features/live-updates.md +0 -642
- package/docs/features/queues-and-emails/00-overview.md +0 -41
- package/docs/features/queues-and-emails/00-tracker.json +0 -99
- package/docs/features/queues-and-emails/phase01-foundation.md +0 -15
- package/docs/features/queues-and-emails/phase02-queued-jobs.md +0 -19
- package/docs/features/queues-and-emails/phase03-transactional-emails.md +0 -16
- package/docs/features/queues-and-emails/phase04-quota-ops.md +0 -17
- package/docs/features/queues-and-emails/phase05-async-build-processing-DECISION.md +0 -16
- package/docs/features/queues-and-emails/phase06-verify-deploy.md +0 -17
- package/docs/getting-started/configuration.md +0 -469
- package/docs/getting-started/installation.md +0 -300
- package/docs/getting-started/quick-start.md +0 -430
- package/docs/guides/BACKEND_TEMPLATES_GUIDE.md +0 -183
- package/docs/guides/admin-panel.md +0 -268
- package/docs/guides/channel-management.md +0 -343
- package/docs/guides/dashboard-guide.md +0 -365
- package/docs/guides/deployment-guide.md +0 -335
- package/docs/guides/end-to-end-workflow.md +0 -491
- package/docs/guides/key-management.md +0 -284
- package/docs/guides/migration-from-codepush.md +0 -145
- package/docs/guides/security-best-practices.md +0 -1057
- package/docs/guides/testing-guide.md +0 -346
- package/docs/guides/troubleshooting.md +0 -482
- package/docs/package-audit.md +0 -41
- package/docs/plans/PLANNING_COMPLETE_SUMMARY.md +0 -361
- package/docs/plans/TASK_1_ANDROID_EXAMPLE_APP.md +0 -401
- package/docs/plans/TASK_2_API_ENDPOINTS.md +0 -856
- package/docs/plans/TASK_2_DASHBOARD_UI_UX.md +0 -820
- package/docs/plans/TASK_2_DATABASE_SCHEMA.md +0 -704
- package/docs/plans/TASK_2_GOOGLE_DRIVE_INTEGRATION.md +0 -646
- package/docs/plans/TASK_2_SAAS_ARCHITECTURE.md +0 -587
- package/docs/plans/TASK_2_USER_AUTHENTICATION.md +0 -600
- package/docs/play-store/ASO-METADATA.md +0 -5
- package/docs/play-store/DATA-SAFETY.md +0 -5
- package/docs/play-store/DECLARATIONS.md +0 -5
- package/docs/play-store/README.md +0 -27
- package/docs/play-store/RELEASE-NOTES.md +0 -99
- package/docs/play-store/RELEASE-STEPS.md +0 -6
- package/docs/play-store/STORE-LISTING.md +0 -7
- package/docs/play-store/SUBMISSION-CHECKLIST.md +0 -5
- package/docs/production-readiness.md +0 -475
- package/docs/project-audit/2026-05-16/00-FINALIZATION-PLAN.md +0 -123
- package/docs/project-audit/2026-05-16/01-BATCH-PLAN.md +0 -227
- package/docs/project-audit/2026-05-16/02-AUDIT-FINDINGS.md +0 -144
- package/docs/project-audit/2026-05-16/sessions/batch-01.md +0 -42
- package/docs/project-audit/2026-05-16/sessions/batch-02.md +0 -74
- package/docs/project-audit/2026-05-16/sessions/batch-03.md +0 -71
- package/docs/project-audit/2026-05-16/sessions/batch-04.md +0 -88
- package/docs/project-audit/2026-05-16/sessions/batch-05.md +0 -63
- package/docs/project-audit/2026-05-16/sessions/batch-06.md +0 -103
- package/docs/project-audit/2026-05-16/sessions/batch-07.md +0 -61
- package/docs/project-audit/2026-05-16/sessions/batch-08.md +0 -101
- package/docs/project-audit/2026-05-16/sessions/batch-09.md +0 -105
- package/docs/project-audit/2026-05-16/sessions/batch-10.md +0 -102
- package/docs/project-audit/AUDIT-HISTORY.md +0 -74
- package/docs/project-audit/BATCH-PLAN.md +0 -168
- package/docs/project-audit/MARKETING-WEBSITE-FINDINGS-2026-05-11.md +0 -73
- package/docs/project-audit/PRODUCTION-READINESS-AUDIT-2026-05-08.md +0 -275
- package/docs/project-finalization/00-tracker.json +0 -60
- package/docs/project-knowledge-base/01-system-overview.md +0 -227
- package/docs/project-knowledge-base/02-routes-pages-forms-users.md +0 -352
- package/docs/project-knowledge-base/03-tech-stack-modules-services.md +0 -379
- package/docs/project-knowledge-base/04-data-models-integrations.md +0 -244
- package/docs/project-knowledge-base/05-docs-corpus-inventory.md +0 -256
- package/docs/project-knowledge-base/06-operations-testing-legal-content.md +0 -208
- package/docs/project-knowledge-base/README.md +0 -103
- package/docs/project-profiles/native-update-capacitor-update-platform-project-profile-last-updated-2026-05-19.md +0 -81
- package/docs/reports/AUDIT_SUMMARY_2025-12-26.md +0 -203
- package/docs/reports/CLAUDE-CODE-COMPLETION-PROMPT.md +0 -403
- package/docs/reports/CLAUDE_CODE_PROMPT.md +0 -29
- package/docs/reports/CODEBASE_STATUS_REPORT.md +0 -272
- package/docs/reports/COMPLETE_VERIFICATION.md +0 -106
- package/docs/reports/COMPREHENSIVE-PROJECT-AUDIT-2026-02-24.md +0 -747
- package/docs/reports/EVENT_FLOW_VERIFICATION.md +0 -80
- package/docs/reports/EXAMPLE_APPS_SIMPLIFICATION_COMPLETE.md +0 -369
- package/docs/reports/FINAL_STATUS.md +0 -122
- package/docs/reports/FINAL_VERIFICATION_CHECKLIST.md +0 -425
- package/docs/reports/MARKETING_WEBSITE_COMPLETE.md +0 -466
- package/docs/reports/PACKAGE_COMPLETENESS_REPORT.md +0 -130
- package/docs/reports/PRODUCTION_STATUS.md +0 -115
- package/docs/reports/PROJECT_RESTRUCTURE_2025-12-27.md +0 -287
- package/docs/reports/PROJECT_RESTRUCTURE_FINAL_SUMMARY.md +0 -464
- package/docs/reports/PUBLISHING_VERIFICATION.md +0 -144
- package/docs/reports/RELEASE_READY_SUMMARY.md +0 -99
- package/docs/reports/claude-completion.json +0 -241
- package/docs/rules-tracker.md +0 -102
- package/docs/security/PRE-LAUNCH-PENTEST-CHECKLIST.md +0 -116
- package/docs/security/certificate-pinning.md +0 -122
- package/docs/seo-aeo-rules.json +0 -3043
- package/docs/social-media-marketing/README.md +0 -81
- package/docs/social-media-marketing/posts-batch-01.md +0 -613
- package/docs/social-media-marketing/posts-batch-02.md +0 -528
- package/docs/social-media-marketing/whatsapp-messages-batch-01.md +0 -458
- package/docs/social-media-marketing/whatsapp-status-batch-01.md +0 -355
- package/docs/tracking/IMPLEMENTATION_TRACKER.md +0 -303
- package/docs/tracking/capacitor-rollout-note-2026-03-01.md +0 -21
- package/docs/tracking/completion-tracker-2026-02-24.json +0 -174
- package/docs/tracking/finalization-2026-05-16-tracker.json +0 -346
- package/docs/tracking/full-audit-tracker.json +0 -121
- package/docs/tracking/production-readiness-audit-tracker.json +0 -429
- package/docs/tracking/seo-checklist-tracker.json +0 -333
|
@@ -1,268 +0,0 @@
|
|
|
1
|
-
# Admin Panel Documentation
|
|
2
|
-
|
|
3
|
-
The Admin Panel provides super-administrator access to manage all users, apps, and builds across the Native Update platform.
|
|
4
|
-
|
|
5
|
-
## Access Requirements
|
|
6
|
-
|
|
7
|
-
The Admin Panel is only accessible to authorized administrators:
|
|
8
|
-
|
|
9
|
-
- **Admin Email**: `aoneahsan@gmail.com`
|
|
10
|
-
- **URL**: `https://nativeupdate.aoneahsan.com/admin`
|
|
11
|
-
|
|
12
|
-
Non-admin users attempting to access `/admin` will be redirected to the regular dashboard.
|
|
13
|
-
|
|
14
|
-
## Admin Panel Overview
|
|
15
|
-
|
|
16
|
-
### Navigation
|
|
17
|
-
|
|
18
|
-
| Section | Description |
|
|
19
|
-
|---------|-------------|
|
|
20
|
-
| **Overview** | Platform-wide statistics and recent activity |
|
|
21
|
-
| **Users** | Manage all registered users |
|
|
22
|
-
| **Apps** | View all applications across users |
|
|
23
|
-
| **Builds** | Access all builds across the platform |
|
|
24
|
-
|
|
25
|
-
### Accessing Admin Panel
|
|
26
|
-
|
|
27
|
-
1. Login with the admin account
|
|
28
|
-
2. Navigate to `/admin` or click the Admin link (if visible in navigation)
|
|
29
|
-
3. The admin panel uses a distinct red theme to differentiate from the regular dashboard
|
|
30
|
-
|
|
31
|
-
## Admin Overview
|
|
32
|
-
|
|
33
|
-
**URL**: `/admin`
|
|
34
|
-
|
|
35
|
-
### Platform Statistics
|
|
36
|
-
|
|
37
|
-
The overview page displays aggregate metrics:
|
|
38
|
-
|
|
39
|
-
| Metric | Description |
|
|
40
|
-
|--------|-------------|
|
|
41
|
-
| **Total Users** | All registered users on the platform |
|
|
42
|
-
| **Total Apps** | All applications created |
|
|
43
|
-
| **Total Builds** | All builds uploaded |
|
|
44
|
-
| **Total Storage** | Combined storage used by all builds |
|
|
45
|
-
|
|
46
|
-
### Recent Activity
|
|
47
|
-
|
|
48
|
-
Shows the latest platform activity including:
|
|
49
|
-
- New user registrations
|
|
50
|
-
- New app creations
|
|
51
|
-
- Recent build uploads
|
|
52
|
-
|
|
53
|
-
Each activity item shows:
|
|
54
|
-
- Activity type (user/app/build icon)
|
|
55
|
-
- Name or identifier
|
|
56
|
-
- Timestamp
|
|
57
|
-
|
|
58
|
-
### Quick Actions
|
|
59
|
-
|
|
60
|
-
Direct links to:
|
|
61
|
-
- Manage Users
|
|
62
|
-
- Manage Apps
|
|
63
|
-
- Manage Builds
|
|
64
|
-
- Return to Dashboard
|
|
65
|
-
|
|
66
|
-
## User Management
|
|
67
|
-
|
|
68
|
-
**URL**: `/admin/users`
|
|
69
|
-
|
|
70
|
-
### User List
|
|
71
|
-
|
|
72
|
-
View all registered users with:
|
|
73
|
-
|
|
74
|
-
| Column | Description |
|
|
75
|
-
|--------|-------------|
|
|
76
|
-
| **User** | Avatar, display name, email, admin badge |
|
|
77
|
-
| **Plan** | Current subscription (beta/pro/enterprise) |
|
|
78
|
-
| **Apps** | Number of apps created |
|
|
79
|
-
| **Builds** | Number of builds uploaded |
|
|
80
|
-
| **Storage** | Storage space used |
|
|
81
|
-
| **Created** | Registration date |
|
|
82
|
-
| **Last Login** | Most recent login |
|
|
83
|
-
|
|
84
|
-
### Search & Filter
|
|
85
|
-
|
|
86
|
-
- Search by email or display name
|
|
87
|
-
- Results update as you type
|
|
88
|
-
|
|
89
|
-
### Pagination
|
|
90
|
-
|
|
91
|
-
- 20 users per page
|
|
92
|
-
- Navigate with Previous/Next buttons
|
|
93
|
-
|
|
94
|
-
### Admin Badge
|
|
95
|
-
|
|
96
|
-
Users with admin privileges display a shield icon next to their name.
|
|
97
|
-
|
|
98
|
-
## App Management
|
|
99
|
-
|
|
100
|
-
**URL**: `/admin/apps`
|
|
101
|
-
|
|
102
|
-
### App List
|
|
103
|
-
|
|
104
|
-
View all applications with:
|
|
105
|
-
|
|
106
|
-
| Column | Description |
|
|
107
|
-
|--------|-------------|
|
|
108
|
-
| **App** | Icon and app name |
|
|
109
|
-
| **Package ID** | Unique package identifier |
|
|
110
|
-
| **Owner** | Email of the app owner |
|
|
111
|
-
| **Builds** | Total number of builds |
|
|
112
|
-
| **Platforms** | Supported platforms (iOS/Android/Web icons) |
|
|
113
|
-
| **Created** | Creation date |
|
|
114
|
-
|
|
115
|
-
### Search & Filter
|
|
116
|
-
|
|
117
|
-
- Search by app name, package ID, or owner email
|
|
118
|
-
- Results update as you type
|
|
119
|
-
|
|
120
|
-
### Pagination
|
|
121
|
-
|
|
122
|
-
- 20 apps per page
|
|
123
|
-
- Navigate with Previous/Next buttons
|
|
124
|
-
|
|
125
|
-
## Build Management
|
|
126
|
-
|
|
127
|
-
**URL**: `/admin/builds`
|
|
128
|
-
|
|
129
|
-
### Build List
|
|
130
|
-
|
|
131
|
-
View all builds with:
|
|
132
|
-
|
|
133
|
-
| Column | Description |
|
|
134
|
-
|--------|-------------|
|
|
135
|
-
| **Version** | Build version number |
|
|
136
|
-
| **App** | Associated app name |
|
|
137
|
-
| **Owner** | Email of the build owner |
|
|
138
|
-
| **Channel** | Deployment channel (production/staging/development) |
|
|
139
|
-
| **Platform** | Target platform |
|
|
140
|
-
| **Status** | Build status (active/processing/failed/archived) |
|
|
141
|
-
| **Size** | File size |
|
|
142
|
-
| **Uploaded** | Upload date |
|
|
143
|
-
| **Actions** | Download button |
|
|
144
|
-
|
|
145
|
-
### Filters
|
|
146
|
-
|
|
147
|
-
Multiple filter options available:
|
|
148
|
-
|
|
149
|
-
- **Search**: Filter by version, app name, or owner email
|
|
150
|
-
- **Channel**: All/Production/Staging/Development
|
|
151
|
-
- **Platform**: All/iOS/Android/Web
|
|
152
|
-
- **Status**: All/Active/Processing/Uploading/Failed/Archived
|
|
153
|
-
|
|
154
|
-
### Clear Filters
|
|
155
|
-
|
|
156
|
-
Click "Clear Filters" to reset all filters to default.
|
|
157
|
-
|
|
158
|
-
### Build Actions
|
|
159
|
-
|
|
160
|
-
- **Download**: Download the build file from Google Drive
|
|
161
|
-
|
|
162
|
-
### Pagination
|
|
163
|
-
|
|
164
|
-
- 20 builds per page
|
|
165
|
-
- Navigate with Previous/Next buttons
|
|
166
|
-
|
|
167
|
-
## Admin Responsibilities
|
|
168
|
-
|
|
169
|
-
### Regular Monitoring
|
|
170
|
-
|
|
171
|
-
Administrators should regularly:
|
|
172
|
-
|
|
173
|
-
1. **Monitor User Growth**
|
|
174
|
-
- Track new registrations
|
|
175
|
-
- Identify unusual signup patterns
|
|
176
|
-
|
|
177
|
-
2. **Monitor Storage Usage**
|
|
178
|
-
- Track total platform storage
|
|
179
|
-
- Identify users with excessive usage
|
|
180
|
-
|
|
181
|
-
3. **Monitor Build Activity**
|
|
182
|
-
- Watch for failed builds
|
|
183
|
-
- Check for processing issues
|
|
184
|
-
|
|
185
|
-
4. **Check Platform Health**
|
|
186
|
-
- Verify all services are operational
|
|
187
|
-
- Monitor error rates
|
|
188
|
-
|
|
189
|
-
### User Support
|
|
190
|
-
|
|
191
|
-
Administrators may need to:
|
|
192
|
-
|
|
193
|
-
- Investigate user-reported issues
|
|
194
|
-
- Verify build uploads
|
|
195
|
-
- Check user permissions
|
|
196
|
-
- Review app configurations
|
|
197
|
-
|
|
198
|
-
### Security
|
|
199
|
-
|
|
200
|
-
Administrators should:
|
|
201
|
-
|
|
202
|
-
- Never share admin credentials
|
|
203
|
-
- Regularly review access logs
|
|
204
|
-
- Monitor for suspicious activity
|
|
205
|
-
- Report security concerns immediately
|
|
206
|
-
|
|
207
|
-
## Technical Details
|
|
208
|
-
|
|
209
|
-
### Admin Detection
|
|
210
|
-
|
|
211
|
-
Admin status is determined by:
|
|
212
|
-
1. User's email matching `aoneahsan@gmail.com`
|
|
213
|
-
2. `isAdmin` field in Firestore user document set to `true`
|
|
214
|
-
|
|
215
|
-
### Data Access
|
|
216
|
-
|
|
217
|
-
The admin panel fetches data without userId filters, allowing access to all documents:
|
|
218
|
-
|
|
219
|
-
- Users: All documents in `users` collection
|
|
220
|
-
- Apps: All documents in `apps` collection
|
|
221
|
-
- Builds: All documents in `builds` collection
|
|
222
|
-
|
|
223
|
-
### Security Rules
|
|
224
|
-
|
|
225
|
-
Firestore security rules should ensure:
|
|
226
|
-
- Only admin users can read all documents
|
|
227
|
-
- Regular users can only read their own data
|
|
228
|
-
- Write operations follow normal permission checks
|
|
229
|
-
|
|
230
|
-
## Troubleshooting
|
|
231
|
-
|
|
232
|
-
### Cannot Access Admin Panel
|
|
233
|
-
|
|
234
|
-
1. Verify you're logged in with the admin email
|
|
235
|
-
2. Check that `isAdmin` is set to `true` in Firestore
|
|
236
|
-
3. Clear browser cache and try again
|
|
237
|
-
4. Check browser console for errors
|
|
238
|
-
|
|
239
|
-
### Data Not Loading
|
|
240
|
-
|
|
241
|
-
1. Check network connection
|
|
242
|
-
2. Verify Firestore rules allow admin access
|
|
243
|
-
3. Check for JavaScript errors in console
|
|
244
|
-
4. Try refreshing the page
|
|
245
|
-
|
|
246
|
-
### Search Not Working
|
|
247
|
-
|
|
248
|
-
1. Ensure search term is correct
|
|
249
|
-
2. Check that data is loaded (not showing loading spinner)
|
|
250
|
-
3. Search is case-insensitive
|
|
251
|
-
|
|
252
|
-
## Future Enhancements
|
|
253
|
-
|
|
254
|
-
Planned admin features:
|
|
255
|
-
|
|
256
|
-
- [ ] User role management
|
|
257
|
-
- [ ] App deletion/archival
|
|
258
|
-
- [ ] Build cleanup tools
|
|
259
|
-
- [ ] Platform settings management
|
|
260
|
-
- [ ] Audit logs
|
|
261
|
-
- [ ] Email notifications
|
|
262
|
-
- [ ] Bulk operations
|
|
263
|
-
|
|
264
|
-
## Related Documentation
|
|
265
|
-
|
|
266
|
-
- [Dashboard Guide](https://nativeupdate.aoneahsan.com/docs/guides/dashboard-guide) - Regular user dashboard
|
|
267
|
-
- [Channel Management](https://nativeupdate.aoneahsan.com/docs/guides/channel-management) - Managing update channels
|
|
268
|
-
- [Security Best Practices](https://nativeupdate.aoneahsan.com/docs/guides/security-best-practices) - Security guidelines
|
|
@@ -1,343 +0,0 @@
|
|
|
1
|
-
# Channel Management Guide
|
|
2
|
-
|
|
3
|
-
This guide explains how to use update channels (production, staging, development) to manage different environments for your app updates.
|
|
4
|
-
|
|
5
|
-
## Overview
|
|
6
|
-
|
|
7
|
-
Native Update supports three built-in channels that allow you to:
|
|
8
|
-
- Test updates in development before releasing
|
|
9
|
-
- QA updates in staging with beta testers
|
|
10
|
-
- Deploy stable updates to production users
|
|
11
|
-
|
|
12
|
-
## Channel Types
|
|
13
|
-
|
|
14
|
-
### 1. Development Channel
|
|
15
|
-
**Purpose**: Local testing and rapid iteration
|
|
16
|
-
|
|
17
|
-
```typescript
|
|
18
|
-
// Configure for development
|
|
19
|
-
await NativeUpdate.configure({
|
|
20
|
-
updateUrl: 'https://nativeupdate.aoneahsan.com/api/updates',
|
|
21
|
-
channel: 'development',
|
|
22
|
-
autoCheck: true,
|
|
23
|
-
checkInterval: 60, // Check every minute for rapid testing
|
|
24
|
-
});
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
**Characteristics**:
|
|
28
|
-
- Fastest update delivery
|
|
29
|
-
- Auto-update enabled by default
|
|
30
|
-
- No user consent required (immediate updates)
|
|
31
|
-
- Ideal for internal testing
|
|
32
|
-
|
|
33
|
-
### 2. Staging Channel
|
|
34
|
-
**Purpose**: QA testing and beta releases
|
|
35
|
-
|
|
36
|
-
```typescript
|
|
37
|
-
// Configure for staging
|
|
38
|
-
await NativeUpdate.configure({
|
|
39
|
-
updateUrl: 'https://nativeupdate.aoneahsan.com/api/updates',
|
|
40
|
-
channel: 'staging',
|
|
41
|
-
autoCheck: true,
|
|
42
|
-
checkInterval: 3600, // Check every hour
|
|
43
|
-
});
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
**Characteristics**:
|
|
47
|
-
- Beta testing environment
|
|
48
|
-
- User consent typically required
|
|
49
|
-
- Tests update flow before production
|
|
50
|
-
- Ideal for TestFlight/Internal Testing releases
|
|
51
|
-
|
|
52
|
-
### 3. Production Channel
|
|
53
|
-
**Purpose**: Live user releases
|
|
54
|
-
|
|
55
|
-
```typescript
|
|
56
|
-
// Configure for production
|
|
57
|
-
await NativeUpdate.configure({
|
|
58
|
-
updateUrl: 'https://nativeupdate.aoneahsan.com/api/updates',
|
|
59
|
-
channel: 'production',
|
|
60
|
-
autoCheck: true,
|
|
61
|
-
checkInterval: 86400, // Check daily
|
|
62
|
-
});
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
**Characteristics**:
|
|
66
|
-
- Most stable updates only
|
|
67
|
-
- User consent required
|
|
68
|
-
- Gradual rollout support
|
|
69
|
-
- Automatic rollback on errors
|
|
70
|
-
|
|
71
|
-
## Dashboard Channel Configuration
|
|
72
|
-
|
|
73
|
-
### Setting Up Channels in Dashboard
|
|
74
|
-
|
|
75
|
-
1. **Navigate to your app** in the dashboard (`/dashboard/apps`)
|
|
76
|
-
2. **Click on your app** to open app details
|
|
77
|
-
3. **View Channels section** - shows all three channels with their settings
|
|
78
|
-
|
|
79
|
-
### Channel Settings
|
|
80
|
-
|
|
81
|
-
Each channel has these configurable options:
|
|
82
|
-
|
|
83
|
-
| Setting | Description | Default |
|
|
84
|
-
|---------|-------------|---------|
|
|
85
|
-
| Enabled | Whether this channel is active | true |
|
|
86
|
-
| Auto Update | Automatically install updates | varies |
|
|
87
|
-
| Update Strategy | immediate/background/manual | background |
|
|
88
|
-
| Require User Consent | Ask before installing | varies |
|
|
89
|
-
| Min Version | Minimum app version required | null |
|
|
90
|
-
|
|
91
|
-
### Configuring Channel via Dashboard
|
|
92
|
-
|
|
93
|
-
1. Go to **Dashboard > Apps > [Your App]**
|
|
94
|
-
2. In the **Channels** section, click **Configure**
|
|
95
|
-
3. Adjust settings for each channel:
|
|
96
|
-
- **Production**: Enable consent, use background strategy
|
|
97
|
-
- **Staging**: Enable auto-update, use background strategy
|
|
98
|
-
- **Development**: Enable auto-update, use immediate strategy
|
|
99
|
-
|
|
100
|
-
## Uploading Builds to Channels
|
|
101
|
-
|
|
102
|
-
### Via Dashboard Upload Page
|
|
103
|
-
|
|
104
|
-
1. Go to **Dashboard > Upload**
|
|
105
|
-
2. Select your app
|
|
106
|
-
3. **Choose Channel**: Select production, staging, or development
|
|
107
|
-
4. Upload your build file (zip, apk, or ipa)
|
|
108
|
-
5. Fill in version details:
|
|
109
|
-
- Version (e.g., 1.2.3)
|
|
110
|
-
- Build Number
|
|
111
|
-
- Release Notes
|
|
112
|
-
- Release Type (major/minor/patch/hotfix)
|
|
113
|
-
6. Click **Upload**
|
|
114
|
-
|
|
115
|
-
### Via CLI
|
|
116
|
-
|
|
117
|
-
```bash
|
|
118
|
-
# Upload to development
|
|
119
|
-
npx native-update bundle upload ./www --channel development --version 1.0.0
|
|
120
|
-
|
|
121
|
-
# Upload to staging
|
|
122
|
-
npx native-update bundle upload ./www --channel staging --version 1.0.0
|
|
123
|
-
|
|
124
|
-
# Upload to production
|
|
125
|
-
npx native-update bundle upload ./www --channel production --version 1.0.0
|
|
126
|
-
```
|
|
127
|
-
|
|
128
|
-
## Update Flow by Channel
|
|
129
|
-
|
|
130
|
-
### Development Flow
|
|
131
|
-
|
|
132
|
-
```
|
|
133
|
-
Developer changes code
|
|
134
|
-
↓
|
|
135
|
-
Build locally: yarn build
|
|
136
|
-
↓
|
|
137
|
-
Upload to development channel
|
|
138
|
-
↓
|
|
139
|
-
App auto-downloads and applies immediately
|
|
140
|
-
↓
|
|
141
|
-
Developer tests changes
|
|
142
|
-
```
|
|
143
|
-
|
|
144
|
-
### Staging Flow
|
|
145
|
-
|
|
146
|
-
```
|
|
147
|
-
Code passes development testing
|
|
148
|
-
↓
|
|
149
|
-
Upload to staging channel
|
|
150
|
-
↓
|
|
151
|
-
QA team / Beta testers receive update
|
|
152
|
-
↓
|
|
153
|
-
Users approve and install update
|
|
154
|
-
↓
|
|
155
|
-
QA validates functionality
|
|
156
|
-
```
|
|
157
|
-
|
|
158
|
-
### Production Flow
|
|
159
|
-
|
|
160
|
-
```
|
|
161
|
-
Code passes staging testing
|
|
162
|
-
↓
|
|
163
|
-
Upload to production channel
|
|
164
|
-
↓
|
|
165
|
-
Gradual rollout begins (10% → 50% → 100%)
|
|
166
|
-
↓
|
|
167
|
-
Users receive update notification
|
|
168
|
-
↓
|
|
169
|
-
Users approve and install
|
|
170
|
-
↓
|
|
171
|
-
Monitor for errors, rollback if needed
|
|
172
|
-
```
|
|
173
|
-
|
|
174
|
-
## Environment-Based Configuration
|
|
175
|
-
|
|
176
|
-
### React/Vite Example
|
|
177
|
-
|
|
178
|
-
```typescript
|
|
179
|
-
// src/config/update-config.ts
|
|
180
|
-
const getUpdateConfig = () => {
|
|
181
|
-
const baseConfig = {
|
|
182
|
-
updateUrl: 'https://nativeupdate.aoneahsan.com/api/updates',
|
|
183
|
-
autoCheck: true,
|
|
184
|
-
};
|
|
185
|
-
|
|
186
|
-
if (import.meta.env.MODE === 'development') {
|
|
187
|
-
return {
|
|
188
|
-
...baseConfig,
|
|
189
|
-
channel: 'development',
|
|
190
|
-
checkInterval: 60,
|
|
191
|
-
};
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
if (import.meta.env.MODE === 'staging') {
|
|
195
|
-
return {
|
|
196
|
-
...baseConfig,
|
|
197
|
-
channel: 'staging',
|
|
198
|
-
checkInterval: 3600,
|
|
199
|
-
};
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
// Production
|
|
203
|
-
return {
|
|
204
|
-
...baseConfig,
|
|
205
|
-
channel: 'production',
|
|
206
|
-
checkInterval: 86400,
|
|
207
|
-
};
|
|
208
|
-
};
|
|
209
|
-
|
|
210
|
-
export const updateConfig = getUpdateConfig();
|
|
211
|
-
```
|
|
212
|
-
|
|
213
|
-
### Capacitor Config Example
|
|
214
|
-
|
|
215
|
-
```typescript
|
|
216
|
-
// capacitor.config.ts
|
|
217
|
-
import { CapacitorConfig } from '@capacitor/cli';
|
|
218
|
-
|
|
219
|
-
const config: CapacitorConfig = {
|
|
220
|
-
appId: 'com.example.myapp',
|
|
221
|
-
appName: 'My App',
|
|
222
|
-
webDir: 'dist',
|
|
223
|
-
plugins: {
|
|
224
|
-
NativeUpdate: {
|
|
225
|
-
updateUrl: 'https://nativeupdate.aoneahsan.com/api/updates',
|
|
226
|
-
channel: process.env.UPDATE_CHANNEL || 'production',
|
|
227
|
-
autoCheck: true,
|
|
228
|
-
checkInterval: 3600,
|
|
229
|
-
},
|
|
230
|
-
},
|
|
231
|
-
};
|
|
232
|
-
|
|
233
|
-
export default config;
|
|
234
|
-
```
|
|
235
|
-
|
|
236
|
-
## Gradual Rollouts (Production)
|
|
237
|
-
|
|
238
|
-
### Setting Up Gradual Rollout
|
|
239
|
-
|
|
240
|
-
1. Go to **Dashboard > Rollouts**
|
|
241
|
-
2. Select your app and channel
|
|
242
|
-
3. Configure rollout percentage:
|
|
243
|
-
- Start at 10% to catch issues early
|
|
244
|
-
- Increase to 50% if metrics are good
|
|
245
|
-
- Complete at 100% for full release
|
|
246
|
-
|
|
247
|
-
### Rollout Best Practices
|
|
248
|
-
|
|
249
|
-
1. **Start Small**: Begin with 5-10% of users
|
|
250
|
-
2. **Monitor Errors**: Check error rates in Analytics
|
|
251
|
-
3. **Watch Rollbacks**: High rollback rates indicate issues
|
|
252
|
-
4. **Gradual Increase**: 10% → 25% → 50% → 100%
|
|
253
|
-
5. **Pause if Needed**: Stop rollout if issues arise
|
|
254
|
-
|
|
255
|
-
## Channel Switching at Runtime
|
|
256
|
-
|
|
257
|
-
```typescript
|
|
258
|
-
// Switch channel dynamically (advanced use case)
|
|
259
|
-
async function switchToChannel(channel: 'production' | 'staging' | 'development') {
|
|
260
|
-
await NativeUpdate.configure({
|
|
261
|
-
channel,
|
|
262
|
-
});
|
|
263
|
-
|
|
264
|
-
// Force check for updates on new channel
|
|
265
|
-
await NativeUpdate.sync();
|
|
266
|
-
}
|
|
267
|
-
```
|
|
268
|
-
|
|
269
|
-
## Monitoring Channels
|
|
270
|
-
|
|
271
|
-
### Dashboard Analytics
|
|
272
|
-
|
|
273
|
-
View per-channel metrics at **Dashboard > Analytics**:
|
|
274
|
-
|
|
275
|
-
- **Downloads**: Total downloads per channel
|
|
276
|
-
- **Installs**: Successful installations
|
|
277
|
-
- **Rollbacks**: Failed updates that rolled back
|
|
278
|
-
- **Errors**: Update errors
|
|
279
|
-
|
|
280
|
-
### Per-Channel Health
|
|
281
|
-
|
|
282
|
-
| Metric | Healthy | Warning | Critical |
|
|
283
|
-
|--------|---------|---------|----------|
|
|
284
|
-
| Install Rate | >95% | 90-95% | <90% |
|
|
285
|
-
| Rollback Rate | <1% | 1-5% | >5% |
|
|
286
|
-
| Error Rate | <0.1% | 0.1-1% | >1% |
|
|
287
|
-
|
|
288
|
-
## Best Practices
|
|
289
|
-
|
|
290
|
-
### 1. Always Test in Development First
|
|
291
|
-
Never upload directly to production. Flow should be:
|
|
292
|
-
`Development → Staging → Production`
|
|
293
|
-
|
|
294
|
-
### 2. Use Semantic Versioning
|
|
295
|
-
- **Major** (1.0.0 → 2.0.0): Breaking changes
|
|
296
|
-
- **Minor** (1.0.0 → 1.1.0): New features
|
|
297
|
-
- **Patch** (1.0.0 → 1.0.1): Bug fixes
|
|
298
|
-
- **Hotfix**: Emergency production fixes
|
|
299
|
-
|
|
300
|
-
### 3. Write Clear Release Notes
|
|
301
|
-
Users see release notes before updating. Make them:
|
|
302
|
-
- Clear and concise
|
|
303
|
-
- Highlight important changes
|
|
304
|
-
- List bug fixes
|
|
305
|
-
- Note any required actions
|
|
306
|
-
|
|
307
|
-
### 4. Monitor After Release
|
|
308
|
-
- Watch dashboard analytics for 24-48 hours
|
|
309
|
-
- Check error rates and rollbacks
|
|
310
|
-
- Be ready to pause rollout if needed
|
|
311
|
-
|
|
312
|
-
### 5. Keep Channels in Sync
|
|
313
|
-
- Same code should flow through all channels
|
|
314
|
-
- Don't skip staging for production releases
|
|
315
|
-
- Document channel-specific configurations
|
|
316
|
-
|
|
317
|
-
## Troubleshooting
|
|
318
|
-
|
|
319
|
-
### Update Not Appearing on Device
|
|
320
|
-
|
|
321
|
-
1. **Check channel configuration**: Ensure device is on correct channel
|
|
322
|
-
2. **Verify upload**: Confirm build is uploaded to expected channel
|
|
323
|
-
3. **Check version**: Device version must be compatible
|
|
324
|
-
4. **Force sync**: Call `NativeUpdate.sync()` manually
|
|
325
|
-
|
|
326
|
-
### Wrong Channel Receiving Updates
|
|
327
|
-
|
|
328
|
-
1. **Check capacitor.config.ts**: Verify channel setting
|
|
329
|
-
2. **Check environment variables**: Ensure correct env is loaded
|
|
330
|
-
3. **Rebuild app**: Changes to config require rebuild
|
|
331
|
-
|
|
332
|
-
### Rollout Stuck
|
|
333
|
-
|
|
334
|
-
1. **Check rollout status**: View in Dashboard > Rollouts
|
|
335
|
-
2. **Verify percentage**: Ensure rollout isn't paused
|
|
336
|
-
3. **Check user count**: Small user bases may not hit percentage thresholds
|
|
337
|
-
|
|
338
|
-
## Related Documentation
|
|
339
|
-
|
|
340
|
-
- [Quick Start Guide](https://nativeupdate.aoneahsan.com/docs/getting-started/quick-start)
|
|
341
|
-
- [Configuration Guide](https://nativeupdate.aoneahsan.com/docs/getting-started/configuration)
|
|
342
|
-
- [Deployment Guide](https://nativeupdate.aoneahsan.com/docs/guides/deployment-guide)
|
|
343
|
-
- [Production Readiness](https://nativeupdate.aoneahsan.com/docs/production-readiness)
|