native-update 3.1.2 → 3.1.4

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.
Files changed (206) hide show
  1. package/AI-INTEGRATION-GUIDE.md +15 -10
  2. package/Readme.md +35 -35
  3. package/android/src/main/java/com/aoneahsan/nativeupdate/LiveUpdatePlugin.kt +88 -12
  4. package/android/src/main/java/com/aoneahsan/nativeupdate/NativeUpdatePlugin.kt +45 -18
  5. package/cli/AGENTS.md +1 -1
  6. package/cli/CLAUDE.md +1 -1
  7. package/cli/commands/bundle-create.js +2 -2
  8. package/cli/index.js +11 -0
  9. package/dist/esm/definitions.d.ts +8 -0
  10. package/dist/esm/plugin.js +16 -2
  11. package/dist/plugin.cjs.js +1 -1
  12. package/dist/plugin.esm.js +1 -1
  13. package/dist/plugin.js +2 -2
  14. package/docs/CHANGELOG.md +90 -0
  15. package/docs/KNOWN_LIMITATIONS.md +2 -2
  16. package/docs/MIGRATION.md +1 -1
  17. package/ios/Plugin/LiveUpdate/LiveUpdatePlugin.swift +64 -8
  18. package/ios/Plugin/NativeUpdatePlugin.swift +39 -13
  19. package/package.json +8 -3
  20. package/docs/AGENTS.md +0 -47
  21. package/docs/APP_REVIEW_GUIDE.md +0 -768
  22. package/docs/BUNDLE_SIGNING.md +0 -277
  23. package/docs/CLAUDE.md +0 -110
  24. package/docs/COMPREHENSIVE_AUDIT_REPORT.md +0 -526
  25. package/docs/DEPLOY_NOTES.md +0 -116
  26. package/docs/EXAMPLE_APPS_SIMPLIFICATION_PLAN.md +0 -384
  27. package/docs/EXAMPLE_APPS_SIMPLIFICATION_TRACKER.md +0 -390
  28. package/docs/LIVE_UPDATES_GUIDE.md +0 -675
  29. package/docs/MANUAL-TASKS.md +0 -30
  30. package/docs/MARKETING_WEBSITE_TRACKER.md +0 -677
  31. package/docs/NATIVE_UPDATES_GUIDE.md +0 -695
  32. package/docs/PACKAGES.md +0 -167
  33. package/docs/PERFORMANCE.md +0 -110
  34. package/docs/PROJECT_COMPLETION_TRACKER.md +0 -411
  35. package/docs/QUICK_START.md +0 -595
  36. package/docs/README.md +0 -130
  37. package/docs/REMAINING_FEATURES.md +0 -192
  38. package/docs/ROADMAP.md +0 -295
  39. package/docs/SECURITY-IF-REPO-PUBLIC.md +0 -232
  40. package/docs/SECURITY.md +0 -356
  41. package/docs/TESTING_REQUIREMENTS.md +0 -201
  42. package/docs/ai-knowledge-base/00-project-profile.md +0 -38
  43. package/docs/ai-knowledge-base/01-features.md +0 -46
  44. package/docs/ai-knowledge-base/02-routes.md +0 -72
  45. package/docs/ai-knowledge-base/03-tech-stack.md +0 -57
  46. package/docs/ai-knowledge-base/README.md +0 -23
  47. package/docs/analytics-tracking.md +0 -37
  48. package/docs/api/API.md +0 -558
  49. package/docs/api/FEATURES.md +0 -414
  50. package/docs/api/app-review-api.md +0 -239
  51. package/docs/api/app-update-api.md +0 -154
  52. package/docs/api/background-update-api.md +0 -170
  53. package/docs/api/events-api.md +0 -323
  54. package/docs/api/live-update-api.md +0 -258
  55. package/docs/archive/MARKETING_WEBSITE_PLAN.md +0 -659
  56. package/docs/background-updates.md +0 -392
  57. package/docs/capacitor-official-plugins.md +0 -46
  58. package/docs/capawesome-plugins.md +0 -29
  59. package/docs/cli-reference.md +0 -321
  60. package/docs/deployment/HOSTINGER_DEPLOY.md +0 -370
  61. package/docs/deployment/PRODUCTION-DEPLOY-CHECKLIST.md +0 -184
  62. package/docs/docs-site/plan.md +0 -201
  63. package/docs/docs-site/scope.md +0 -127
  64. package/docs/docs-site/tracker.json +0 -235
  65. package/docs/error-handling-tracking.md +0 -37
  66. package/docs/examples/advanced-scenarios.md +0 -394
  67. package/docs/examples/android-manifest-example.xml +0 -77
  68. package/docs/examples/basic-usage.md +0 -206
  69. package/docs/examples/node-express-backend-example.md +0 -28
  70. package/docs/examples/react-capacitor-example.md +0 -29
  71. package/docs/features/app-reviews.md +0 -975
  72. package/docs/features/app-updates.md +0 -785
  73. package/docs/features/e2e-full-verification/00-overview.md +0 -99
  74. package/docs/features/e2e-full-verification/00-tracker.json +0 -284
  75. package/docs/features/e2e-full-verification/phase01-backend-schema-fixes.md +0 -183
  76. package/docs/features/e2e-full-verification/phase02-test-auth.md +0 -176
  77. package/docs/features/e2e-full-verification/phase03-api-test-coverage.md +0 -63
  78. package/docs/features/e2e-full-verification/phase04-frontend-package-contract-audit.md +0 -73
  79. package/docs/features/e2e-full-verification/phase05-browser-e2e-matrix.md +0 -69
  80. package/docs/features/e2e-full-verification/phase06-deploy-prod-smoke.md +0 -51
  81. package/docs/features/e2e-full-verification/results/phase01-drift-report.md +0 -50
  82. package/docs/features/e2e-full-verification/results/phase03-coverage-matrix.md +0 -215
  83. package/docs/features/e2e-full-verification/results/phase04-frontend-contract.md +0 -139
  84. package/docs/features/e2e-full-verification/results/phase05-e2e-results.md +0 -99
  85. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-01-dashboard.png +0 -0
  86. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-02-signup.png +0 -0
  87. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-03-settings-persisted.png +0 -0
  88. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-04a-app-created.png +0 -0
  89. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-04b-duplicate-bundle-422.png +0 -0
  90. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-05-plan-limit-403.png +0 -0
  91. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-08a-upload-graceful-fail.png +0 -0
  92. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-08b-builds-list.png +0 -0
  93. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-10-rollout-25pct.png +0 -0
  94. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-11-analytics.png +0 -0
  95. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-12-drive-disconnected.png +0 -0
  96. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-13-pricing.png +0 -0
  97. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-14-isolation-403.png +0 -0
  98. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-15a-admin-overview.png +0 -0
  99. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-15b-regular-user-admin-redirect.png +0 -0
  100. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-16a-delete-dialog.png +0 -0
  101. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-17-mobile-375.png +0 -0
  102. package/docs/features/e2e-full-verification/results/route-list.json +0 -1
  103. package/docs/features/laravel-nova-backend/ASSESSMENT-SUMMARY.md +0 -96
  104. package/docs/features/laravel-nova-backend/IMPLEMENTATION-PLAN.md +0 -504
  105. package/docs/features/laravel-nova-backend/progress-tracker.json +0 -184
  106. package/docs/features/live-updates.md +0 -642
  107. package/docs/features/queues-and-emails/00-overview.md +0 -41
  108. package/docs/features/queues-and-emails/00-tracker.json +0 -99
  109. package/docs/features/queues-and-emails/phase01-foundation.md +0 -15
  110. package/docs/features/queues-and-emails/phase02-queued-jobs.md +0 -19
  111. package/docs/features/queues-and-emails/phase03-transactional-emails.md +0 -16
  112. package/docs/features/queues-and-emails/phase04-quota-ops.md +0 -17
  113. package/docs/features/queues-and-emails/phase05-async-build-processing-DECISION.md +0 -16
  114. package/docs/features/queues-and-emails/phase06-verify-deploy.md +0 -17
  115. package/docs/getting-started/configuration.md +0 -469
  116. package/docs/getting-started/installation.md +0 -300
  117. package/docs/getting-started/quick-start.md +0 -430
  118. package/docs/guides/BACKEND_TEMPLATES_GUIDE.md +0 -183
  119. package/docs/guides/admin-panel.md +0 -268
  120. package/docs/guides/channel-management.md +0 -343
  121. package/docs/guides/dashboard-guide.md +0 -365
  122. package/docs/guides/deployment-guide.md +0 -335
  123. package/docs/guides/end-to-end-workflow.md +0 -491
  124. package/docs/guides/key-management.md +0 -284
  125. package/docs/guides/migration-from-codepush.md +0 -145
  126. package/docs/guides/security-best-practices.md +0 -1057
  127. package/docs/guides/testing-guide.md +0 -346
  128. package/docs/guides/troubleshooting.md +0 -482
  129. package/docs/package-audit.md +0 -41
  130. package/docs/plans/PLANNING_COMPLETE_SUMMARY.md +0 -361
  131. package/docs/plans/TASK_1_ANDROID_EXAMPLE_APP.md +0 -401
  132. package/docs/plans/TASK_2_API_ENDPOINTS.md +0 -856
  133. package/docs/plans/TASK_2_DASHBOARD_UI_UX.md +0 -820
  134. package/docs/plans/TASK_2_DATABASE_SCHEMA.md +0 -704
  135. package/docs/plans/TASK_2_GOOGLE_DRIVE_INTEGRATION.md +0 -646
  136. package/docs/plans/TASK_2_SAAS_ARCHITECTURE.md +0 -587
  137. package/docs/plans/TASK_2_USER_AUTHENTICATION.md +0 -600
  138. package/docs/play-store/ASO-METADATA.md +0 -5
  139. package/docs/play-store/DATA-SAFETY.md +0 -5
  140. package/docs/play-store/DECLARATIONS.md +0 -5
  141. package/docs/play-store/README.md +0 -27
  142. package/docs/play-store/RELEASE-NOTES.md +0 -99
  143. package/docs/play-store/RELEASE-STEPS.md +0 -6
  144. package/docs/play-store/STORE-LISTING.md +0 -7
  145. package/docs/play-store/SUBMISSION-CHECKLIST.md +0 -5
  146. package/docs/production-readiness.md +0 -475
  147. package/docs/project-audit/2026-05-16/00-FINALIZATION-PLAN.md +0 -123
  148. package/docs/project-audit/2026-05-16/01-BATCH-PLAN.md +0 -227
  149. package/docs/project-audit/2026-05-16/02-AUDIT-FINDINGS.md +0 -144
  150. package/docs/project-audit/2026-05-16/sessions/batch-01.md +0 -42
  151. package/docs/project-audit/2026-05-16/sessions/batch-02.md +0 -74
  152. package/docs/project-audit/2026-05-16/sessions/batch-03.md +0 -71
  153. package/docs/project-audit/2026-05-16/sessions/batch-04.md +0 -88
  154. package/docs/project-audit/2026-05-16/sessions/batch-05.md +0 -63
  155. package/docs/project-audit/2026-05-16/sessions/batch-06.md +0 -103
  156. package/docs/project-audit/2026-05-16/sessions/batch-07.md +0 -61
  157. package/docs/project-audit/2026-05-16/sessions/batch-08.md +0 -101
  158. package/docs/project-audit/2026-05-16/sessions/batch-09.md +0 -105
  159. package/docs/project-audit/2026-05-16/sessions/batch-10.md +0 -102
  160. package/docs/project-audit/AUDIT-HISTORY.md +0 -74
  161. package/docs/project-audit/BATCH-PLAN.md +0 -168
  162. package/docs/project-audit/MARKETING-WEBSITE-FINDINGS-2026-05-11.md +0 -73
  163. package/docs/project-audit/PRODUCTION-READINESS-AUDIT-2026-05-08.md +0 -275
  164. package/docs/project-finalization/00-tracker.json +0 -60
  165. package/docs/project-knowledge-base/01-system-overview.md +0 -227
  166. package/docs/project-knowledge-base/02-routes-pages-forms-users.md +0 -352
  167. package/docs/project-knowledge-base/03-tech-stack-modules-services.md +0 -379
  168. package/docs/project-knowledge-base/04-data-models-integrations.md +0 -244
  169. package/docs/project-knowledge-base/05-docs-corpus-inventory.md +0 -256
  170. package/docs/project-knowledge-base/06-operations-testing-legal-content.md +0 -208
  171. package/docs/project-knowledge-base/README.md +0 -103
  172. package/docs/project-profiles/native-update-capacitor-update-platform-project-profile-last-updated-2026-05-19.md +0 -81
  173. package/docs/reports/AUDIT_SUMMARY_2025-12-26.md +0 -203
  174. package/docs/reports/CLAUDE-CODE-COMPLETION-PROMPT.md +0 -403
  175. package/docs/reports/CLAUDE_CODE_PROMPT.md +0 -29
  176. package/docs/reports/CODEBASE_STATUS_REPORT.md +0 -272
  177. package/docs/reports/COMPLETE_VERIFICATION.md +0 -106
  178. package/docs/reports/COMPREHENSIVE-PROJECT-AUDIT-2026-02-24.md +0 -747
  179. package/docs/reports/EVENT_FLOW_VERIFICATION.md +0 -80
  180. package/docs/reports/EXAMPLE_APPS_SIMPLIFICATION_COMPLETE.md +0 -369
  181. package/docs/reports/FINAL_STATUS.md +0 -122
  182. package/docs/reports/FINAL_VERIFICATION_CHECKLIST.md +0 -425
  183. package/docs/reports/MARKETING_WEBSITE_COMPLETE.md +0 -466
  184. package/docs/reports/PACKAGE_COMPLETENESS_REPORT.md +0 -130
  185. package/docs/reports/PRODUCTION_STATUS.md +0 -115
  186. package/docs/reports/PROJECT_RESTRUCTURE_2025-12-27.md +0 -287
  187. package/docs/reports/PROJECT_RESTRUCTURE_FINAL_SUMMARY.md +0 -464
  188. package/docs/reports/PUBLISHING_VERIFICATION.md +0 -144
  189. package/docs/reports/RELEASE_READY_SUMMARY.md +0 -99
  190. package/docs/reports/claude-completion.json +0 -241
  191. package/docs/rules-tracker.md +0 -102
  192. package/docs/security/PRE-LAUNCH-PENTEST-CHECKLIST.md +0 -116
  193. package/docs/security/certificate-pinning.md +0 -122
  194. package/docs/seo-aeo-rules.json +0 -3043
  195. package/docs/social-media-marketing/README.md +0 -81
  196. package/docs/social-media-marketing/posts-batch-01.md +0 -613
  197. package/docs/social-media-marketing/posts-batch-02.md +0 -528
  198. package/docs/social-media-marketing/whatsapp-messages-batch-01.md +0 -458
  199. package/docs/social-media-marketing/whatsapp-status-batch-01.md +0 -355
  200. package/docs/tracking/IMPLEMENTATION_TRACKER.md +0 -303
  201. package/docs/tracking/capacitor-rollout-note-2026-03-01.md +0 -21
  202. package/docs/tracking/completion-tracker-2026-02-24.json +0 -174
  203. package/docs/tracking/finalization-2026-05-16-tracker.json +0 -346
  204. package/docs/tracking/full-audit-tracker.json +0 -121
  205. package/docs/tracking/production-readiness-audit-tracker.json +0 -429
  206. package/docs/tracking/seo-checklist-tracker.json +0 -333
@@ -1,482 +0,0 @@
1
- # Troubleshooting Guide
2
-
3
- Common issues and solutions for Native Update plugin and dashboard.
4
-
5
- ## Plugin Issues
6
-
7
- ### Update Not Detected
8
-
9
- **Symptoms**: App doesn't detect available updates
10
-
11
- **Solutions**:
12
-
13
- 1. **Check network connectivity**
14
- ```typescript
15
- // Test network connection
16
- const response = await fetch('https://nativeupdate.aoneahsan.com/api/updates');
17
- console.log('Network status:', response.status);
18
- ```
19
-
20
- 2. **Verify channel configuration**
21
- ```typescript
22
- // Ensure channel matches build upload channel
23
- await NativeUpdate.configure({
24
- channel: 'production', // Must match dashboard upload
25
- });
26
- ```
27
-
28
- 3. **Check version compatibility**
29
- - Build version must be higher than current
30
- - Version code must be incremented
31
-
32
- 4. **Force manual sync**
33
- ```typescript
34
- const result = await NativeUpdate.sync();
35
- console.log('Sync result:', result);
36
- ```
37
-
38
- 5. **Check plugin configuration**
39
- ```typescript
40
- // Verify configuration
41
- const config = await NativeUpdate.getConfiguration();
42
- console.log('Current config:', config);
43
- ```
44
-
45
- ### Download Fails
46
-
47
- **Symptoms**: Update detected but download doesn't complete
48
-
49
- **Solutions**:
50
-
51
- 1. **Check internet stability**
52
- - Ensure stable connection (WiFi recommended)
53
- - Large updates may fail on cellular
54
-
55
- 2. **Check available storage**
56
- ```typescript
57
- // Ensure device has space
58
- const info = await NativeUpdate.getDeviceInfo();
59
- console.log('Available storage:', info.freeSpace);
60
- ```
61
-
62
- 3. **Verify Google Drive connection**
63
- - Go to Dashboard > Google Drive
64
- - Ensure connection is active
65
- - Try reconnecting if needed
66
-
67
- 4. **Check build file integrity**
68
- - Re-upload the build
69
- - Verify checksum matches
70
-
71
- 5. **Increase timeout**
72
- ```typescript
73
- await NativeUpdate.configure({
74
- downloadTimeout: 300000, // 5 minutes
75
- });
76
- ```
77
-
78
- ### Update Installation Fails
79
-
80
- **Symptoms**: Downloaded but won't install
81
-
82
- **Solutions**:
83
-
84
- 1. **Check bundle integrity**
85
- ```typescript
86
- // Verify bundle before install
87
- const isValid = await NativeUpdate.verifyBundle(bundleId);
88
- if (!isValid) {
89
- console.error('Bundle verification failed');
90
- }
91
- ```
92
-
93
- 2. **Check signature verification**
94
- - Ensure public key matches signing key
95
- - Verify bundle was signed correctly
96
-
97
- 3. **Check minimum version**
98
- - Update might require newer native app version
99
- - Check `minVersion` in channel settings
100
-
101
- 4. **Force reload**
102
- ```typescript
103
- try {
104
- await NativeUpdate.reload();
105
- } catch (error) {
106
- console.error('Reload failed:', error);
107
- // Fall back to manual restart
108
- }
109
- ```
110
-
111
- ### App Crashes After Update
112
-
113
- **Symptoms**: App crashes immediately after applying update
114
-
115
- **Solutions**:
116
-
117
- 1. **Plugin should auto-rollback**
118
- - Wait for automatic rollback (within 30 seconds)
119
- - App should revert to previous version
120
-
121
- 2. **Manual rollback**
122
- ```typescript
123
- await NativeUpdate.rollback();
124
- ```
125
-
126
- 3. **Clear update cache**
127
- ```typescript
128
- await NativeUpdate.reset();
129
- ```
130
-
131
- 4. **Check error logs**
132
- ```typescript
133
- NativeUpdate.addListener('error', (error) => {
134
- console.error('Update error:', error);
135
- });
136
- ```
137
-
138
- 5. **Fix and re-upload**
139
- - Test build locally before uploading
140
- - Use development channel first
141
-
142
- ### Wrong Version Displayed
143
-
144
- **Symptoms**: App shows incorrect version after update
145
-
146
- **Solutions**:
147
-
148
- 1. **Clear app data/cache**
149
- - On device, clear app cache
150
- - Reinstall if necessary
151
-
152
- 2. **Verify bundle metadata**
153
- ```typescript
154
- const bundle = await NativeUpdate.getCurrentBundle();
155
- console.log('Current bundle:', bundle);
156
- ```
157
-
158
- 3. **Force reload**
159
- ```typescript
160
- await NativeUpdate.reload();
161
- ```
162
-
163
- ## Dashboard Issues
164
-
165
- ### Cannot Login
166
-
167
- **Symptoms**: Login fails or gets stuck
168
-
169
- **Solutions**:
170
-
171
- 1. **Clear browser cache**
172
- - Clear cookies for nativeupdate.aoneahsan.com
173
- - Try incognito/private mode
174
-
175
- 2. **Check Google account**
176
- - Ensure Google account is active
177
- - Try different Google account
178
-
179
- 3. **Check browser console**
180
- - Look for JavaScript errors
181
- - Report errors to support
182
-
183
- 4. **Try different browser**
184
- - Chrome/Edge recommended
185
- - Safari may have issues with popups
186
-
187
- ### Upload Fails
188
-
189
- **Symptoms**: Build upload doesn't complete
190
-
191
- **Solutions**:
192
-
193
- 1. **Check file size**
194
- - Maximum: 500MB per upload
195
- - Compress assets if needed
196
-
197
- 2. **Check file format**
198
- - Must be `.zip`, `.apk`, or `.ipa`
199
- - Ensure proper compression
200
-
201
- 3. **Check Google Drive space**
202
- - Verify connected account has space
203
- - Remove old builds if needed
204
-
205
- 4. **Check network stability**
206
- - Use stable WiFi connection
207
- - Avoid interruptions during upload
208
-
209
- 5. **Re-connect Google Drive**
210
- - Go to Dashboard > Google Drive
211
- - Disconnect and reconnect
212
-
213
- ### App Not Showing
214
-
215
- **Symptoms**: Created app doesn't appear in list
216
-
217
- **Solutions**:
218
-
219
- 1. **Refresh the page**
220
- - Hard refresh: Ctrl+Shift+R (Cmd+Shift+R on Mac)
221
-
222
- 2. **Check creation errors**
223
- - Look for error messages
224
- - Check browser console
225
-
226
- 3. **Verify package ID**
227
- - Package ID must be unique
228
- - Use reverse domain format (com.example.app)
229
-
230
- ### Build Not Appearing on Device
231
-
232
- **Symptoms**: Uploaded build not received by app
233
-
234
- **Solutions**:
235
-
236
- 1. **Verify channel match**
237
- ```
238
- Dashboard upload: production
239
- App config: channel: 'production' ← Must match!
240
- ```
241
-
242
- 2. **Check app ID match**
243
- ```
244
- Dashboard app: com.example.myapp
245
- App config: appId: 'com.example.myapp' ← Must match!
246
- ```
247
-
248
- 3. **Verify build status**
249
- - Go to Dashboard > Builds
250
- - Status should be "active"
251
- - "Processing" means still uploading
252
-
253
- 4. **Force sync on device**
254
- ```typescript
255
- await NativeUpdate.sync();
256
- ```
257
-
258
- 5. **Check rollout percentage**
259
- - If using rollout, device might not be included
260
- - Increase percentage or wait
261
-
262
- ### Analytics Not Updating
263
-
264
- **Symptoms**: Download/install counts don't update
265
-
266
- **Solutions**:
267
-
268
- 1. **Wait for processing**
269
- - Analytics update every 15-30 minutes
270
- - Real-time updates not supported
271
-
272
- 2. **Verify events are sent**
273
- ```typescript
274
- NativeUpdate.addListener('downloadComplete', () => {
275
- console.log('Download event fired');
276
- });
277
- ```
278
-
279
- 3. **Check network connectivity**
280
- - Events require internet to report
281
- - Events may queue and send later
282
-
283
- ### Rollout Stuck
284
-
285
- **Symptoms**: Rollout doesn't progress
286
-
287
- **Solutions**:
288
-
289
- 1. **Check rollout status**
290
- - Ensure not paused
291
- - Verify percentage is set
292
-
293
- 2. **Check user base**
294
- - Small user bases may not hit percentage
295
- - 10% of 5 users = 0-1 users
296
-
297
- 3. **Manually adjust**
298
- - Increase percentage
299
- - Or complete to 100%
300
-
301
- ## Platform-Specific Issues
302
-
303
- ### iOS Issues
304
-
305
- #### StoreKit Review Not Showing
306
-
307
- **Solutions**:
308
- 1. Reviews limited to 3x per year per user
309
- 2. User may have reviewed before
310
- 3. Test on physical device (not simulator)
311
- 4. Check iOS version (13+)
312
-
313
- #### Background Updates Not Working
314
-
315
- **Solutions**:
316
- 1. Enable background app refresh in Settings
317
- 2. Add background capability in Xcode
318
- 3. Check `UIBackgroundModes` in Info.plist
319
-
320
- ### Android Issues
321
-
322
- #### Play Core Update Dialog Not Showing
323
-
324
- **Solutions**:
325
- 1. Only works on devices with Play Store
326
- 2. App must be downloaded from Play Store
327
- 3. Check Play Store version is current
328
- 4. Test on physical device
329
-
330
- #### Permission Denied Errors
331
-
332
- **Solutions**:
333
- 1. Check storage permissions
334
- 2. Request runtime permissions
335
- 3. Check manifest permissions
336
-
337
- ## Network Issues
338
-
339
- ### SSL/Certificate Errors
340
-
341
- **Solutions**:
342
-
343
- 1. **Check device date/time**
344
- - Incorrect time causes SSL failures
345
- - Enable automatic date/time
346
-
347
- 2. **Check certificate pinning**
348
- - If using pinning, verify pins are correct
349
- - Update pins if certificate renewed
350
-
351
- 3. **Check proxy/VPN**
352
- - Some proxies interfere with SSL
353
- - Try without VPN
354
-
355
- ### Timeout Errors
356
-
357
- **Solutions**:
358
-
359
- 1. **Increase timeouts**
360
- ```typescript
361
- await NativeUpdate.configure({
362
- requestTimeout: 60000,
363
- downloadTimeout: 300000,
364
- });
365
- ```
366
-
367
- 2. **Check server status**
368
- - Verify nativeupdate.aoneahsan.com is accessible
369
- - Check status page if available
370
-
371
- 3. **Retry mechanism**
372
- ```typescript
373
- async function syncWithRetry(retries = 3) {
374
- for (let i = 0; i < retries; i++) {
375
- try {
376
- return await NativeUpdate.sync();
377
- } catch (error) {
378
- if (i === retries - 1) throw error;
379
- await new Promise(r => setTimeout(r, 1000 * (i + 1)));
380
- }
381
- }
382
- }
383
- ```
384
-
385
- ## Debugging Tips
386
-
387
- ### Enable Debug Logging
388
-
389
- ```typescript
390
- await NativeUpdate.configure({
391
- debug: true, // Enable verbose logging
392
- });
393
- ```
394
-
395
- ### Listen to All Events
396
-
397
- ```typescript
398
- const events = [
399
- 'updateAvailable',
400
- 'downloadProgress',
401
- 'downloadComplete',
402
- 'updateReady',
403
- 'updateApplied',
404
- 'error',
405
- 'rollback',
406
- ];
407
-
408
- events.forEach(event => {
409
- NativeUpdate.addListener(event, (data) => {
410
- console.log(`[${event}]`, data);
411
- });
412
- });
413
- ```
414
-
415
- ### Check Plugin State
416
-
417
- ```typescript
418
- async function debugState() {
419
- console.log('=== Native Update Debug ===');
420
- console.log('Config:', await NativeUpdate.getConfiguration());
421
- console.log('Current:', await NativeUpdate.getCurrentBundle());
422
- console.log('Available:', await NativeUpdate.getAvailableBundles());
423
- console.log('===========================');
424
- }
425
- ```
426
-
427
- ### Network Debugging
428
-
429
- ```typescript
430
- // Test API connectivity
431
- async function testAPI() {
432
- try {
433
- const response = await fetch(
434
- 'https://nativeupdate.aoneahsan.com/api/updates',
435
- { method: 'HEAD' }
436
- );
437
- console.log('API Status:', response.status);
438
- } catch (error) {
439
- console.error('API Error:', error);
440
- }
441
- }
442
- ```
443
-
444
- ## Getting Help
445
-
446
- If you can't resolve your issue:
447
-
448
- 1. **Check existing documentation**
449
- - [Dashboard Guide](https://nativeupdate.aoneahsan.com/docs/guides/dashboard-guide)
450
- - [Channel Management](https://nativeupdate.aoneahsan.com/docs/guides/channel-management)
451
- - [API Reference](https://nativeupdate.aoneahsan.com/docs/api/API)
452
-
453
- 2. **Gather information**
454
- - Plugin version
455
- - Platform and version (iOS/Android)
456
- - Error messages
457
- - Steps to reproduce
458
-
459
- 3. **Contact support**
460
- - Email: aoneahsan@gmail.com
461
- - Include all gathered information
462
- - Attach relevant logs
463
-
464
- ## FAQ
465
-
466
- ### Q: How often should I check for updates?
467
- **A**: Production apps should check once daily. Development can check every minute.
468
-
469
- ### Q: Can users skip updates?
470
- **A**: Yes, unless configured for immediate/forced updates.
471
-
472
- ### Q: What happens if update fails mid-download?
473
- **A**: Download resumes on next check. Partial downloads are discarded.
474
-
475
- ### Q: Is there a size limit for updates?
476
- **A**: 500MB per build upload. Consider delta updates for large apps.
477
-
478
- ### Q: How do I test updates locally?
479
- **A**: Use development channel with 1-minute check interval.
480
-
481
- ### Q: Can I rollback to any previous version?
482
- **A**: Plugin auto-rollbacks to previous version. Manual rollback to specific version requires re-upload.
@@ -1,41 +0,0 @@
1
- # Package Audit
2
-
3
- Per R-010 (Clean package.json). Records unused dependencies removed and the reason.
4
-
5
- **Last audited:** 2026-04-25
6
-
7
- ## Root (`package.json`)
8
-
9
- All listed dependencies and devDependencies are imported somewhere in the build pipeline (Rollup, TypeScript, ESLint). No removals.
10
-
11
- ## Website (`website/package.json`)
12
-
13
- | Package | Version | Action | Reason |
14
- |---|---|---|---|
15
- | `react-syntax-highlighter` | ^16.1.1 | **Removed** | Not imported anywhere in `website/src/`. The docs markdown page uses `react-markdown` + `remark-gfm` for rendering. Code highlighting is not currently a feature. Re-add when needed for code-fenced content. |
16
- | `@types/react-syntax-highlighter` | ^15.5.13 | **Removed** | Unused (paired with the package above). |
17
-
18
- After removal, run `yarn install` in `website/` to update `yarn.lock`. Until then, the lockfile keeps the (no-longer-listed) entries — harmless but tidy with the next install.
19
-
20
- All other website deps verified imported:
21
- - Capacitor + Capawesome plugins → used by mobile build flow
22
- - Radix UI primitives → used in `src/components/ui/*` and across pages
23
- - `framer-motion` → used in 11 files
24
- - `lucide-react` → used in 32 files
25
- - `jszip` → used by bundle upload service
26
- - `d3` + `@types/d3` → present for chart rendering (admin/dashboard analytics)
27
- - `firebase`, `react-hook-form`, `zod`, `@hookform/resolvers`, `react-router-dom`, `react-markdown`, `remark-gfm`, `tailwind-merge`, `class-variance-authority`, `clsx`, `zustand` → all imported
28
-
29
- ## CLI (`cli/package.json`)
30
-
31
- All deps are CLI-essential (`commander`, `chalk`, `ora`, `axios`, `archiver`, etc.). No removals.
32
-
33
- ## Backend (`backend/package.json`)
34
-
35
- Tiny dev-only package.json (Vite + Tailwind + Laravel Vite plugin). No removals. Note: `package-lock.json` removed in this run per yarn-only policy. Run `yarn install` in `backend/` to generate `yarn.lock` if backend is actively developed.
36
-
37
- ## Example apps
38
-
39
- - `react-capacitor`: Capacitor + React deps. Verified.
40
- - `node-express`: Express + dotenv. Verified.
41
- - `firebase-backend`: Firebase Admin + Express. Verified.