native-update 3.1.1 → 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 +98 -63
- package/Readme.md +89 -120
- 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/cli/package.json +2 -2
- 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 +108 -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 -117
- 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
package/AI-INTEGRATION-GUIDE.md
CHANGED
|
@@ -24,13 +24,20 @@ Native Update provides three main features:
|
|
|
24
24
|
```typescript
|
|
25
25
|
import { NativeUpdate } from 'native-update';
|
|
26
26
|
|
|
27
|
-
// Configure the plugin
|
|
27
|
+
// Configure the plugin (nested UpdateConfig — one section per feature)
|
|
28
28
|
await NativeUpdate.configure({
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
29
|
+
liveUpdate: {
|
|
30
|
+
appId: 'com.your.app',
|
|
31
|
+
// Canonical rule: serverUrl is the backend base; the plugin appends
|
|
32
|
+
// /v1/updates/check. Hosted backend: https://nativeupdatebe.aoneahsan.com/api
|
|
33
|
+
serverUrl: 'https://nativeupdatebe.aoneahsan.com/api',
|
|
34
|
+
// Sent as X-API-Key on every check. Mint/copy in the dashboard
|
|
35
|
+
// (Apps → your app → API Keys). Supported here since v3.1.3.
|
|
36
|
+
apiKey: 'nu_app_…',
|
|
37
|
+
channel: 'production', // e.g. 'development' | 'staging' | 'production'
|
|
38
|
+
autoUpdate: true,
|
|
39
|
+
updateStrategy: 'background', // 'immediate' | 'background' | 'manual'
|
|
40
|
+
},
|
|
34
41
|
});
|
|
35
42
|
```
|
|
36
43
|
|
|
@@ -39,17 +46,21 @@ await NativeUpdate.configure({
|
|
|
39
46
|
```typescript
|
|
40
47
|
import { NativeUpdate } from 'native-update';
|
|
41
48
|
|
|
42
|
-
// Check and apply updates
|
|
49
|
+
// Check and apply updates — sync() reports a status enum
|
|
43
50
|
const result = await NativeUpdate.sync();
|
|
44
|
-
if (result.
|
|
45
|
-
|
|
51
|
+
if (result.status === 'UPDATE_INSTALLED') {
|
|
52
|
+
// sync() already downloaded + staged the bundle
|
|
46
53
|
await NativeUpdate.reload();
|
|
47
54
|
}
|
|
48
55
|
|
|
49
56
|
// Manual update flow
|
|
50
57
|
const latest = await NativeUpdate.getLatest();
|
|
51
|
-
if (latest.available) {
|
|
52
|
-
const bundle = await NativeUpdate.download({
|
|
58
|
+
if (latest.available && latest.url && latest.version && latest.checksum) {
|
|
59
|
+
const bundle = await NativeUpdate.download({
|
|
60
|
+
url: latest.url,
|
|
61
|
+
version: latest.version,
|
|
62
|
+
checksum: latest.checksum,
|
|
63
|
+
});
|
|
53
64
|
await NativeUpdate.set(bundle);
|
|
54
65
|
await NativeUpdate.reload();
|
|
55
66
|
}
|
|
@@ -84,10 +95,10 @@ if (updateInfo.updateAvailable) {
|
|
|
84
95
|
import { NativeUpdate } from 'native-update';
|
|
85
96
|
|
|
86
97
|
// Request review at appropriate moment
|
|
87
|
-
const
|
|
88
|
-
if (canRequest
|
|
98
|
+
const eligibility = await NativeUpdate.canRequestReview();
|
|
99
|
+
if (eligibility.canRequest) {
|
|
89
100
|
const result = await NativeUpdate.requestReview();
|
|
90
|
-
//
|
|
101
|
+
// result.displayed — note: actual review submission not guaranteed (platform controls)
|
|
91
102
|
}
|
|
92
103
|
```
|
|
93
104
|
|
|
@@ -129,47 +140,60 @@ if (canRequest.eligible) {
|
|
|
129
140
|
|
|
130
141
|
## Configuration Options
|
|
131
142
|
|
|
143
|
+
`configure()` takes a nested `UpdateConfig` — one optional section per feature:
|
|
144
|
+
|
|
132
145
|
```typescript
|
|
133
|
-
interface
|
|
134
|
-
|
|
146
|
+
interface UpdateConfig {
|
|
147
|
+
liveUpdate?: LiveUpdateConfig; // OTA updates
|
|
148
|
+
appUpdate?: AppUpdateConfig; // app store updates
|
|
149
|
+
appReview?: AppReviewConfig; // in-app reviews
|
|
150
|
+
backgroundUpdate?: BackgroundUpdateConfig; // background checks + notifications
|
|
151
|
+
security?: SecurityConfig; // HTTPS enforcement, cert pinning
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
interface LiveUpdateConfig {
|
|
155
|
+
appId: string; // Your app identifier (required)
|
|
156
|
+
serverUrl?: string; // Backend base URL; checks hit {serverUrl}/v1/updates/check (HTTPS required in production)
|
|
157
|
+
apiKey?: string; // Sent as X-API-Key on every check (dashboard: Apps → your app → API Keys). Since v3.1.3
|
|
135
158
|
channel?: string; // Update channel (default: 'production')
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
checkInterval?: number; // Check interval in ms (default: 3600000)
|
|
139
|
-
autoDownload?: boolean; // Auto-download updates (default: false)
|
|
140
|
-
autoInstall?: boolean; // Auto-install after download (default: false)
|
|
141
|
-
requireWifi?: boolean; // Only download on WiFi (default: true)
|
|
142
|
-
minBatteryLevel?: number; // Min battery % for updates (default: 20)
|
|
159
|
+
autoUpdate?: boolean; // Auto-check + apply updates
|
|
160
|
+
updateStrategy?: 'immediate' | 'background' | 'manual';
|
|
143
161
|
publicKey?: string; // Public key for signature verification
|
|
144
|
-
|
|
162
|
+
requireSignature?: boolean; // Reject unsigned bundles
|
|
163
|
+
checksumAlgorithm?: 'SHA-256' | 'SHA-512'; // (default: 'SHA-256')
|
|
164
|
+
checkInterval?: number; // Auto-check interval
|
|
145
165
|
}
|
|
146
166
|
```
|
|
147
167
|
|
|
168
|
+
See the full field list for every section in `src/definitions.ts` or the
|
|
169
|
+
[Configuration Guide](https://nativeupdate-docs.aoneahsan.com/reference/sdk/core/config).
|
|
170
|
+
|
|
148
171
|
## Event Listeners
|
|
149
172
|
|
|
173
|
+
Available events (see `src/definitions.ts` for payload types):
|
|
174
|
+
|
|
175
|
+
| Event | Fires when |
|
|
176
|
+
|-------|------------|
|
|
177
|
+
| `downloadProgress` | OTA bundle download progresses (`{ percent, bytesDownloaded, totalBytes, bundleId }`) |
|
|
178
|
+
| `updateStateChanged` | An OTA bundle changes state (pending → downloading → ready → active/failed) |
|
|
179
|
+
| `backgroundUpdateProgress` | A background update advances through its phases |
|
|
180
|
+
| `backgroundUpdateNotification` | A background-update notification is shown/tapped |
|
|
181
|
+
| `appUpdateStateChanged` / `appUpdateProgress` | Native app-store update state/progress changes |
|
|
182
|
+
| `appUpdateAvailable` / `appUpdateReady` / `appUpdateFailed` | App-store update lifecycle |
|
|
183
|
+
| `appUpdateNotificationClicked` / `appUpdateInstallClicked` | User interacted with an app-update notification |
|
|
184
|
+
|
|
150
185
|
```typescript
|
|
151
186
|
import { NativeUpdate } from 'native-update';
|
|
152
187
|
|
|
153
|
-
|
|
154
|
-
NativeUpdate.addListener('updateAvailable', (info) => {
|
|
155
|
-
console.log('Update available:', info.version);
|
|
156
|
-
});
|
|
157
|
-
|
|
158
|
-
NativeUpdate.addListener('downloadProgress', (progress) => {
|
|
188
|
+
const progressListener = await NativeUpdate.addListener('downloadProgress', (progress) => {
|
|
159
189
|
console.log(`Download: ${progress.percent}%`);
|
|
160
190
|
});
|
|
161
191
|
|
|
162
|
-
NativeUpdate.addListener('
|
|
163
|
-
console.log('
|
|
192
|
+
const stateListener = await NativeUpdate.addListener('updateStateChanged', (event) => {
|
|
193
|
+
console.log('Bundle state:', event.status);
|
|
164
194
|
});
|
|
165
195
|
|
|
166
|
-
|
|
167
|
-
console.error('Update failed:', error.message);
|
|
168
|
-
});
|
|
169
|
-
|
|
170
|
-
NativeUpdate.addListener('updateInstalled', (bundle) => {
|
|
171
|
-
console.log('Update installed:', bundle.version);
|
|
172
|
-
});
|
|
196
|
+
// Later: await progressListener.remove(); or await NativeUpdate.removeAllListeners();
|
|
173
197
|
```
|
|
174
198
|
|
|
175
199
|
## Update Channels
|
|
@@ -182,22 +206,33 @@ NativeUpdate.addListener('updateInstalled', (bundle) => {
|
|
|
182
206
|
|
|
183
207
|
## Backend Requirements
|
|
184
208
|
|
|
185
|
-
|
|
209
|
+
Easiest path: use the hosted backend at [nativeupdate.aoneahsan.com](https://nativeupdate.aoneahsan.com)
|
|
210
|
+
(free dashboard — register the app, upload bundles, get the `serverUrl` + API key).
|
|
211
|
+
Self-hosting instead? Your server must implement this contract
|
|
212
|
+
(full spec: [server requirements](https://nativeupdate-docs.aoneahsan.com/backend/overview)):
|
|
213
|
+
|
|
214
|
+
### GET {serverUrl}/v1/updates/check?channel={channel}
|
|
215
|
+
|
|
216
|
+
Request headers sent by the plugin: `X-API-Key`, `X-Device-ID`,
|
|
217
|
+
`X-Current-Version`, `X-Platform` (and `X-App-Version` when known).
|
|
218
|
+
|
|
219
|
+
Response — `200` with `available: false` when there is no update, `200` with:
|
|
186
220
|
|
|
187
|
-
### GET /api/check
|
|
188
221
|
```json
|
|
189
222
|
{
|
|
190
223
|
"available": true,
|
|
191
224
|
"version": "1.2.0",
|
|
192
|
-
"
|
|
193
|
-
"
|
|
225
|
+
"bundleId": "bundle-ulid",
|
|
226
|
+
"downloadUrl": "https://cdn.example.com/bundles/1.2.0.zip",
|
|
227
|
+
"checksum": "sha256-hex...",
|
|
194
228
|
"signature": "base64signature...",
|
|
229
|
+
"size": 1048576,
|
|
230
|
+
"mandatory": false,
|
|
195
231
|
"releaseNotes": "Bug fixes and improvements"
|
|
196
232
|
}
|
|
197
233
|
```
|
|
198
234
|
|
|
199
|
-
|
|
200
|
-
Returns the bundle zip file.
|
|
235
|
+
`downloadUrl` must be an HTTPS URL that returns the bundle zip.
|
|
201
236
|
|
|
202
237
|
## CLI Tools
|
|
203
238
|
|
|
@@ -211,20 +246,20 @@ npx native-update bundle sign ./bundles/1.2.0.zip --key ./private.key
|
|
|
211
246
|
# Verify a bundle
|
|
212
247
|
npx native-update bundle verify ./bundles/1.2.0.zip --key ./public.key
|
|
213
248
|
|
|
214
|
-
#
|
|
215
|
-
npx native-update
|
|
249
|
+
# Generate signing keys
|
|
250
|
+
npx native-update keys generate --type rsa --size 4096
|
|
216
251
|
```
|
|
217
252
|
|
|
253
|
+
Upload the resulting bundle through your backend's dashboard/API (hosted
|
|
254
|
+
dashboard: the Upload page at nativeupdate.aoneahsan.com).
|
|
255
|
+
|
|
218
256
|
## Platform-Specific Setup
|
|
219
257
|
|
|
220
258
|
### Android
|
|
221
259
|
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
implementation 'com.google.android.play:core:1.10.3'
|
|
226
|
-
}
|
|
227
|
-
```
|
|
260
|
+
No additional setup required. The plugin's own Gradle config already includes
|
|
261
|
+
the Google Play App Update and Play Review libraries (do NOT add the legacy
|
|
262
|
+
`com.google.android.play:core` artifact — it conflicts with them).
|
|
228
263
|
|
|
229
264
|
### iOS
|
|
230
265
|
|
|
@@ -252,9 +287,9 @@ import { NativeUpdate } from 'native-update';
|
|
|
252
287
|
|
|
253
288
|
App.addListener('appStateChange', async ({ isActive }) => {
|
|
254
289
|
if (isActive) {
|
|
255
|
-
const result = await NativeUpdate.sync(
|
|
256
|
-
if (result.
|
|
257
|
-
// Show user prompt to reload
|
|
290
|
+
const result = await NativeUpdate.sync();
|
|
291
|
+
if (result.status === 'UPDATE_INSTALLED') {
|
|
292
|
+
// Show user prompt to reload (NativeUpdate.reload())
|
|
258
293
|
}
|
|
259
294
|
}
|
|
260
295
|
});
|
|
@@ -265,8 +300,8 @@ App.addListener('appStateChange', async ({ isActive }) => {
|
|
|
265
300
|
```typescript
|
|
266
301
|
async function handlePurchaseComplete() {
|
|
267
302
|
// After successful purchase
|
|
268
|
-
const
|
|
269
|
-
if (canRequest
|
|
303
|
+
const eligibility = await NativeUpdate.canRequestReview();
|
|
304
|
+
if (eligibility.canRequest) {
|
|
270
305
|
await NativeUpdate.requestReview();
|
|
271
306
|
}
|
|
272
307
|
}
|
|
@@ -283,8 +318,8 @@ async function handlePurchaseComplete() {
|
|
|
283
318
|
|
|
284
319
|
## Links
|
|
285
320
|
|
|
286
|
-
- [Full Documentation](https://nativeupdate.aoneahsan.com/
|
|
287
|
-
- [API Reference](https://nativeupdate.aoneahsan.com/
|
|
288
|
-
- [Example Apps](https://nativeupdate.aoneahsan.com/
|
|
289
|
-
- [CLI Reference](https://nativeupdate.aoneahsan.com/
|
|
290
|
-
- [Security Guide](https://nativeupdate.aoneahsan.com/
|
|
321
|
+
- [Full Documentation](https://nativeupdate-docs.aoneahsan.com/)
|
|
322
|
+
- [API Reference](https://nativeupdate-docs.aoneahsan.com/reference/sdk/live-update/methods)
|
|
323
|
+
- [Example Apps](https://nativeupdate-docs.aoneahsan.com/tutorials/first-ota-update)
|
|
324
|
+
- [CLI Reference](https://nativeupdate-docs.aoneahsan.com/reference/cli/overview)
|
|
325
|
+
- [Security Guide](https://nativeupdate-docs.aoneahsan.com/concepts/security-model)
|
package/Readme.md
CHANGED
|
@@ -1,75 +1,72 @@
|
|
|
1
1
|
# Capacitor Native Update Plugin
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
[](https://www.npmjs.com/package/native-update)
|
|
4
|
+
[](./LICENSE)
|
|
5
|
+
|
|
6
|
+
> ⚠️ **Production-Ready** ⚠️
|
|
6
7
|
>
|
|
7
|
-
> - ✅ **
|
|
8
|
-
> - ✅ **
|
|
9
|
-
> - ✅ **
|
|
10
|
-
> - ✅ **Development
|
|
11
|
-
> - ✅ **Security
|
|
8
|
+
> - ✅ **Complete native implementations** - iOS (Swift) and Android (Kotlin) fully implemented
|
|
9
|
+
> - ✅ **Two complete examples** - React + Capacitor app and a Node.js + Express backend in `example-apps/`
|
|
10
|
+
> - ✅ **Backend included** - Laravel 13 + Nova 5 reference backend (`backend/`) powers the hosted SaaS and is self-hostable
|
|
11
|
+
> - ✅ **Development tools included** - Bundle creator, signer, and CLI tools
|
|
12
|
+
> - ✅ **Security features implemented** - HTTPS enforcement, signatures, checksums
|
|
12
13
|
>
|
|
13
|
-
> **🚀 Try the example
|
|
14
|
+
> **🚀 Try the example app in `example-apps/` to see all features in action!**
|
|
14
15
|
|
|
15
16
|
## Current State
|
|
16
17
|
|
|
17
|
-
- Package version: `
|
|
18
|
-
- Verified on: `2026-
|
|
18
|
+
- Package version: see the npm badge above — the single source of truth is `package.json` `version`, and it is deliberately not duplicated in this file
|
|
19
|
+
- Verified on: `2026-07-14`
|
|
19
20
|
- Tests: `134/134` backend PHPUnit via `php artisan test`
|
|
20
21
|
- Build: `yarn build` succeeds (root plugin Rollup + website Vite + Docusaurus docs site)
|
|
21
22
|
- Root package manager is standardized on Yarn, and the root scripts no longer shell out to npm or pnpm
|
|
22
23
|
- Backend: Laravel 13 + Nova 5 — the only backend after v3.0.0 (Firestore removed); identity via Laravel Socialite + Sanctum personal access tokens; RBAC via `spatie/laravel-permission` (roles `super-admin`, `admin`, `user`)
|
|
23
|
-
- Root portfolio info file:
|
|
24
|
-
- `NATIVE-UPDATE_portfolio-info_2026-06-26.md`
|
|
25
|
-
- Current dated project profile:
|
|
26
|
-
- `docs/project-profiles/native-update-capacitor-update-platform-project-profile-last-updated-2026-05-19.md`
|
|
27
24
|
|
|
28
25
|
## 📚 Documentation
|
|
29
26
|
|
|
30
|
-
- **[AI Integration Guide](https://nativeupdate.aoneahsan.com/
|
|
27
|
+
- **[AI Integration Guide](https://nativeupdate-docs.aoneahsan.com/ai-integration)** - Quick reference for AI development agents (Claude, Cursor, Copilot)
|
|
31
28
|
|
|
32
29
|
### Getting Started
|
|
33
30
|
|
|
34
|
-
- **[Installation Guide](https://nativeupdate.aoneahsan.com/
|
|
35
|
-
- **[Quick Start Guide](https://nativeupdate.aoneahsan.com/
|
|
36
|
-
- **[Configuration Guide](https://nativeupdate.aoneahsan.com/
|
|
37
|
-
- **[End-to-End Workflow](https://nativeupdate.aoneahsan.com/
|
|
31
|
+
- **[Installation Guide](https://nativeupdate-docs.aoneahsan.com/getting-started/installation)** - Step-by-step installation instructions
|
|
32
|
+
- **[Quick Start Guide](https://nativeupdate-docs.aoneahsan.com/getting-started/quick-start)** - Get up and running in minutes
|
|
33
|
+
- **[Configuration Guide](https://nativeupdate-docs.aoneahsan.com/reference/sdk/core/config)** - Detailed configuration options
|
|
34
|
+
- **[End-to-End Workflow](https://nativeupdate-docs.aoneahsan.com/tutorials/backend-first-walkthrough)** - Complete setup to production guide
|
|
38
35
|
|
|
39
36
|
### Dashboard & Management
|
|
40
37
|
|
|
41
|
-
- **[Dashboard Guide](https://nativeupdate.aoneahsan.com/
|
|
42
|
-
- **[Channel Management](https://nativeupdate.aoneahsan.com/
|
|
43
|
-
- **[Admin Panel](https://nativeupdate.aoneahsan.com/
|
|
38
|
+
- **[Dashboard Guide](https://nativeupdate-docs.aoneahsan.com/backend/nova-admin-overview)** - Complete dashboard user guide
|
|
39
|
+
- **[Channel Management](https://nativeupdate-docs.aoneahsan.com/how-to/manage-channels)** - Dev/staging/production channels
|
|
40
|
+
- **[Admin Panel](https://nativeupdate-docs.aoneahsan.com/backend/nova-admin-overview)** - Super-admin documentation
|
|
44
41
|
|
|
45
42
|
### Features Documentation
|
|
46
43
|
|
|
47
|
-
- **[Live Updates (OTA)](https://nativeupdate.aoneahsan.com/
|
|
48
|
-
- **[App Updates](https://nativeupdate.aoneahsan.com/
|
|
49
|
-
- **[App Reviews](https://nativeupdate.aoneahsan.com/
|
|
50
|
-
- **[Background Updates](https://nativeupdate.aoneahsan.com/
|
|
44
|
+
- **[Live Updates (OTA)](https://nativeupdate-docs.aoneahsan.com/reference/sdk/live-update/overview)** - Deploy web updates instantly
|
|
45
|
+
- **[App Updates](https://nativeupdate-docs.aoneahsan.com/reference/sdk/app-update/overview)** - Native app store update management
|
|
46
|
+
- **[App Reviews](https://nativeupdate-docs.aoneahsan.com/reference/sdk/app-review/overview)** - In-app review integration
|
|
47
|
+
- **[Background Updates](https://nativeupdate-docs.aoneahsan.com/reference/sdk/background-update/overview)** - Background update management
|
|
51
48
|
|
|
52
49
|
### Guides & Best Practices
|
|
53
50
|
|
|
54
|
-
- **[Security Best Practices](https://nativeupdate.aoneahsan.com/
|
|
55
|
-
- **[Deployment Guide](https://nativeupdate.aoneahsan.com/
|
|
56
|
-
- **[Migration Guide](https://nativeupdate.aoneahsan.com/
|
|
57
|
-
- **[Production Readiness](https://nativeupdate.aoneahsan.com/
|
|
58
|
-
- **[Bundle Signing](https://nativeupdate.aoneahsan.com/
|
|
59
|
-
- **[Troubleshooting](https://nativeupdate.aoneahsan.com/
|
|
51
|
+
- **[Security Best Practices](https://nativeupdate-docs.aoneahsan.com/concepts/security-model)** - Implement secure updates
|
|
52
|
+
- **[Deployment Guide](https://nativeupdate-docs.aoneahsan.com/how-to/ci-cd-github-actions)** - Deployment procedures
|
|
53
|
+
- **[Migration Guide](https://nativeupdate-docs.aoneahsan.com/how-to/migrate-from-codepush)** - Migrate from other solutions
|
|
54
|
+
- **[Production Readiness](https://nativeupdate-docs.aoneahsan.com/concepts/security-model)** - Production deployment checklist
|
|
55
|
+
- **[Bundle Signing](https://nativeupdate-docs.aoneahsan.com/concepts/bundle-integrity-and-signing)** - Cryptographic signing guide
|
|
56
|
+
- **[Troubleshooting](https://nativeupdate-docs.aoneahsan.com/how-to/troubleshooting)** - Common issues and solutions
|
|
60
57
|
|
|
61
58
|
### API Reference
|
|
62
59
|
|
|
63
|
-
- **[Live Update API](https://nativeupdate.aoneahsan.com/
|
|
64
|
-
- **[App Update API](https://nativeupdate.aoneahsan.com/
|
|
65
|
-
- **[App Review API](https://nativeupdate.aoneahsan.com/
|
|
66
|
-
- **[Events API](https://nativeupdate.aoneahsan.com/
|
|
67
|
-
- **[CLI Reference](https://nativeupdate.aoneahsan.com/
|
|
60
|
+
- **[Live Update API](https://nativeupdate-docs.aoneahsan.com/reference/sdk/live-update/methods)** - Complete API for OTA updates
|
|
61
|
+
- **[App Update API](https://nativeupdate-docs.aoneahsan.com/reference/sdk/app-update/methods)** - Native app update methods
|
|
62
|
+
- **[App Review API](https://nativeupdate-docs.aoneahsan.com/reference/sdk/app-review/methods)** - Review request methods
|
|
63
|
+
- **[Events API](https://nativeupdate-docs.aoneahsan.com/reference/sdk/live-update/events)** - Event listeners and handlers
|
|
64
|
+
- **[CLI Reference](https://nativeupdate-docs.aoneahsan.com/reference/cli/overview)** - Command-line tools documentation
|
|
68
65
|
|
|
69
66
|
### Examples
|
|
70
67
|
|
|
71
|
-
- **[Basic Usage](https://nativeupdate.aoneahsan.com/
|
|
72
|
-
- **[Advanced Scenarios](https://nativeupdate.aoneahsan.com/
|
|
68
|
+
- **[Basic Usage](https://nativeupdate-docs.aoneahsan.com/tutorials/first-ota-update)** - Simple implementation examples
|
|
69
|
+
- **[Advanced Scenarios](https://nativeupdate-docs.aoneahsan.com/tutorials/backend-first-walkthrough)** - Complex use cases
|
|
73
70
|
|
|
74
71
|
---
|
|
75
72
|
|
|
@@ -101,7 +98,7 @@ Native Update supports three deployment channels:
|
|
|
101
98
|
| **Staging** | QA/Beta testing | Configurable | 1 hour |
|
|
102
99
|
| **Production** | Live users | No (consent) | Daily |
|
|
103
100
|
|
|
104
|
-
See [Channel Management Guide](https://nativeupdate.aoneahsan.com/
|
|
101
|
+
See [Channel Management Guide](https://nativeupdate-docs.aoneahsan.com/how-to/manage-channels) for detailed configuration.
|
|
105
102
|
|
|
106
103
|
---
|
|
107
104
|
|
|
@@ -168,24 +165,34 @@ async function checkLiveUpdates() {
|
|
|
168
165
|
try {
|
|
169
166
|
const result = await NativeUpdate.sync();
|
|
170
167
|
|
|
168
|
+
if (result.status === 'UPDATE_INSTALLED') {
|
|
169
|
+
// sync() already downloaded and staged the bundle — reload to apply
|
|
170
|
+
await NativeUpdate.reload();
|
|
171
|
+
return;
|
|
172
|
+
}
|
|
173
|
+
|
|
171
174
|
if (result.status === 'UPDATE_AVAILABLE') {
|
|
172
|
-
//
|
|
173
|
-
const
|
|
175
|
+
// Manual flow: fetch the manifest, then download + apply
|
|
176
|
+
const latest = await NativeUpdate.getLatest();
|
|
177
|
+
if (!latest.available || !latest.url || !latest.version || !latest.checksum) {
|
|
178
|
+
return;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
// Track download progress
|
|
182
|
+
const listener = await NativeUpdate.addListener('downloadProgress', (progress) => {
|
|
174
183
|
console.log(`Downloading: ${progress.percent}%`);
|
|
175
184
|
});
|
|
176
185
|
|
|
177
|
-
// Download the update
|
|
178
186
|
const bundle = await NativeUpdate.download({
|
|
179
|
-
url:
|
|
180
|
-
version:
|
|
181
|
-
checksum:
|
|
187
|
+
url: latest.url,
|
|
188
|
+
version: latest.version,
|
|
189
|
+
checksum: latest.checksum,
|
|
182
190
|
});
|
|
191
|
+
await listener.remove();
|
|
183
192
|
|
|
184
193
|
// Set the bundle and reload
|
|
185
194
|
await NativeUpdate.set(bundle);
|
|
186
195
|
await NativeUpdate.reload();
|
|
187
|
-
|
|
188
|
-
listener.remove();
|
|
189
196
|
}
|
|
190
197
|
} catch (error) {
|
|
191
198
|
console.error('Update failed:', error);
|
|
@@ -203,7 +210,7 @@ async function checkNativeUpdates() {
|
|
|
203
210
|
if (result.updateAvailable) {
|
|
204
211
|
if (result.immediateUpdateAllowed) {
|
|
205
212
|
// Critical update - must install
|
|
206
|
-
await NativeUpdate.
|
|
213
|
+
await NativeUpdate.performImmediateUpdate();
|
|
207
214
|
} else if (result.flexibleUpdateAllowed) {
|
|
208
215
|
// Optional update - download in background
|
|
209
216
|
await NativeUpdate.startFlexibleUpdate();
|
|
@@ -328,7 +335,7 @@ export class AppComponent implements OnInit {
|
|
|
328
335
|
|
|
329
336
|
## Requirements
|
|
330
337
|
|
|
331
|
-
- Capacitor
|
|
338
|
+
- Capacitor 8.x (peer dependency `@capacitor/core` `^8.0.1`)
|
|
332
339
|
- iOS 13.0+
|
|
333
340
|
- Android 5.0+ (API 21+)
|
|
334
341
|
|
|
@@ -343,23 +350,23 @@ This plugin implements multiple security layers:
|
|
|
343
350
|
|
|
344
351
|
## 🎯 Complete Example Implementations
|
|
345
352
|
|
|
346
|
-
|
|
353
|
+
The example app references the local plugin via yarn's `portal:` protocol - no need to publish to npm for testing!
|
|
347
354
|
|
|
348
355
|
### Frontend Example: React + Capacitor
|
|
349
356
|
|
|
350
|
-
**[React + Capacitor Example](https://nativeupdate.aoneahsan.com/
|
|
357
|
+
**[React + Capacitor Example](https://nativeupdate-docs.aoneahsan.com/tutorials/first-ota-update)**
|
|
351
358
|
|
|
352
359
|
- ✅ Simple, focused demonstration of OTA updates
|
|
353
360
|
- ✅ Single-page app with "change this text and deploy" example
|
|
354
361
|
- ✅ Capacitor integration (iOS + Android)
|
|
355
362
|
- ✅ TypeScript + Vite for modern development
|
|
356
|
-
- ✅ Uses local plugin via
|
|
363
|
+
- ✅ Uses local plugin via yarn `portal:` reference
|
|
357
364
|
|
|
358
365
|
### Backend Examples
|
|
359
366
|
|
|
360
367
|
#### 1. Node.js + Express Backend
|
|
361
368
|
|
|
362
|
-
**[Node.js + Express Backend Example](https://nativeupdate.aoneahsan.com/
|
|
369
|
+
**[Node.js + Express Backend Example](https://nativeupdate-docs.aoneahsan.com/backend/node-express-minimal)**
|
|
363
370
|
|
|
364
371
|
- ✅ Production-ready update server
|
|
365
372
|
- ✅ Bundle management API
|
|
@@ -372,8 +379,8 @@ This repository uses **yarn workspace** for seamless development. All examples r
|
|
|
372
379
|
|
|
373
380
|
The canonical backend ships in this monorepo under [`backend/`](./backend) — a
|
|
374
381
|
Laravel 13 + Nova 5 application that powers the hosted Native Update SaaS at
|
|
375
|
-
`
|
|
376
|
-
self-host it on any PHP 8.
|
|
382
|
+
`nativeupdatebe.aoneahsan.com`. You can use it as a managed service or
|
|
383
|
+
self-host it on any PHP 8.3+ host. Setup is documented in
|
|
377
384
|
[`docs/deployment/PRODUCTION-DEPLOY-CHECKLIST.md`](./docs/deployment/PRODUCTION-DEPLOY-CHECKLIST.md).
|
|
378
385
|
|
|
379
386
|
- ✅ Google OAuth (Socialite) + Sanctum bearer tokens + spatie/laravel-permission RBAC
|
|
@@ -411,7 +418,7 @@ npx native-update backend create express --with-admin
|
|
|
411
418
|
- Generate keys: `npx native-update keys generate --type rsa --size 4096`
|
|
412
419
|
- Supports RSA (2048/4096) and EC (256/384) keys
|
|
413
420
|
- Creates timestamped key pairs with proper permissions
|
|
414
|
-
- See [Key Management Guide](https://nativeupdate.aoneahsan.com/
|
|
421
|
+
- See [Key Management Guide](https://nativeupdate-docs.aoneahsan.com/how-to/rotate-signing-keys) for detailed instructions
|
|
415
422
|
|
|
416
423
|
✅ **Backend Templates**
|
|
417
424
|
- Express.js: `npx native-update backend create express --with-admin`
|
|
@@ -426,73 +433,35 @@ npx native-update backend create express --with-admin
|
|
|
426
433
|
✅ **Migration Tools**
|
|
427
434
|
- From CodePush: `npx native-update migrate --from codepush`
|
|
428
435
|
|
|
429
|
-
See [CLI Reference](https://nativeupdate.aoneahsan.com/
|
|
430
|
-
|
|
431
|
-
## 🏗️ Development Status
|
|
432
|
-
|
|
433
|
-
### What This Package Provides
|
|
434
|
-
|
|
435
|
-
✅ **Architecture & Design**
|
|
436
|
-
- Well-designed TypeScript interfaces and plugin structure
|
|
437
|
-
- Modular architecture for live updates, app updates, and reviews
|
|
438
|
-
- Security-first design patterns
|
|
439
|
-
|
|
440
|
-
✅ **Documentation**
|
|
441
|
-
- Comprehensive API documentation
|
|
442
|
-
- Security best practices guide
|
|
443
|
-
- Implementation examples and guides
|
|
444
|
-
|
|
445
|
-
✅ **Foundation Code**
|
|
446
|
-
- TypeScript/Web implementation
|
|
447
|
-
- Plugin interfaces and definitions
|
|
448
|
-
- Basic native platform stubs
|
|
449
|
-
|
|
450
|
-
### What You Need to Build
|
|
451
|
-
|
|
452
|
-
❌ **Backend Infrastructure**
|
|
453
|
-
- Update server with API endpoints
|
|
454
|
-
- Bundle storage and CDN
|
|
455
|
-
- Version management system
|
|
456
|
-
- Signing and encryption services
|
|
436
|
+
See [CLI Reference](https://nativeupdate-docs.aoneahsan.com/reference/cli/overview) for complete documentation.
|
|
457
437
|
|
|
458
|
-
|
|
459
|
-
- Verify and complete iOS implementation
|
|
460
|
-
- Verify and complete Android implementation
|
|
461
|
-
- Platform-specific testing
|
|
438
|
+
## 🏗️ What Ships in This Package
|
|
462
439
|
|
|
463
|
-
|
|
464
|
-
-
|
|
465
|
-
-
|
|
466
|
-
-
|
|
467
|
-
- Security testing
|
|
440
|
+
✅ **Complete plugin implementation**
|
|
441
|
+
- TypeScript/web implementation with full type definitions (`src/definitions.ts`)
|
|
442
|
+
- Native iOS (Swift) and Android (Kotlin) implementations
|
|
443
|
+
- Live updates, app store updates, in-app reviews, and background updates
|
|
468
444
|
|
|
469
|
-
|
|
470
|
-
-
|
|
471
|
-
-
|
|
472
|
-
- Deployment scripts
|
|
473
|
-
- Monitoring solutions
|
|
445
|
+
✅ **Tooling**
|
|
446
|
+
- `npx native-update` CLI: bundle create/sign/verify, key generation, backend templates, migration
|
|
447
|
+
- Example React + Capacitor app and Node.js + Express backend in `example-apps/`
|
|
474
448
|
|
|
475
|
-
|
|
449
|
+
✅ **Backend options**
|
|
450
|
+
- Hosted dashboard at [nativeupdate.aoneahsan.com](https://nativeupdate.aoneahsan.com) (Laravel 13 + Nova 5, source in `backend/`, self-hostable)
|
|
451
|
+
- Documented HTTP contract for fully custom servers ([server requirements](https://nativeupdate-docs.aoneahsan.com/backend/overview))
|
|
476
452
|
|
|
477
|
-
|
|
478
|
-
- Review the documentation at `https://nativeupdate.aoneahsan.com/docs`
|
|
479
|
-
- Study the TypeScript interfaces in `/src/definitions.ts`
|
|
480
|
-
- Check the [ROADMAP.md](https://nativeupdate.aoneahsan.com/docs/ROADMAP) for development priorities
|
|
453
|
+
### What You Still Own as an Integrator
|
|
481
454
|
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
- Create signing infrastructure
|
|
455
|
+
- Choosing a backend: the hosted dashboard, a self-hosted `backend/` deployment, the Express example, or your own server implementing the documented contract
|
|
456
|
+
- Generating and safeguarding your bundle-signing keys (`npx native-update keys generate`)
|
|
457
|
+
- Testing your update flows on real devices before production rollouts
|
|
486
458
|
|
|
487
|
-
|
|
488
|
-
- Test and verify iOS implementation
|
|
489
|
-
- Test and verify Android implementation
|
|
490
|
-
- Ensure all plugin methods work correctly
|
|
459
|
+
## 🚀 Getting Started
|
|
491
460
|
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
461
|
+
1. **Install and configure** — follow the [Quick Start](https://nativeupdate-docs.aoneahsan.com/getting-started/quick-start)
|
|
462
|
+
2. **Pick a backend** — hosted dashboard or self-hosted (see [server requirements](https://nativeupdate-docs.aoneahsan.com/backend/overview))
|
|
463
|
+
3. **Create signing keys and a first bundle** — `npx native-update keys generate`, then `npx native-update bundle create ./dist`
|
|
464
|
+
4. **Verify the full cycle on a device** — deploy, update, and roll back through channels before going live
|
|
496
465
|
|
|
497
466
|
## 💡 Key Benefits
|
|
498
467
|
|
|
@@ -510,8 +479,8 @@ This package is **open-source** and created by **Ahsan Mahmood** for the develop
|
|
|
510
479
|
|
|
511
480
|
- **[NPM Package](https://www.npmjs.com/package/native-update)** - Package and versions
|
|
512
481
|
- **[Website](https://nativeupdate.aoneahsan.com)** - Official website and dashboard
|
|
513
|
-
- **[Documentation](https://nativeupdate.aoneahsan.com/
|
|
514
|
-
- **[Examples](https://nativeupdate.aoneahsan.com/
|
|
482
|
+
- **[Documentation](https://nativeupdate-docs.aoneahsan.com/)** - Comprehensive documentation
|
|
483
|
+
- **[Examples](https://nativeupdate-docs.aoneahsan.com/tutorials/first-ota-update)** - Real-world usage examples
|
|
515
484
|
|
|
516
485
|
### Professional Support
|
|
517
486
|
|
|
@@ -520,7 +489,7 @@ This package is **open-source** and created by **Ahsan Mahmood** for the develop
|
|
|
520
489
|
- **Performance Optimization**: Performance tuning and optimization
|
|
521
490
|
- **Training and Consulting**: Team training and consultation
|
|
522
491
|
|
|
523
|
-
## 📈 Why
|
|
492
|
+
## 📈 Why Native Update?
|
|
524
493
|
|
|
525
494
|
- **Solid Architecture**: Well-designed plugin structure and interfaces
|
|
526
495
|
- **Platform Agnostic**: Works with any JavaScript framework
|