Milestone 25: Package for Android and iOS (blocked)
- Added Capacitor packaging configuration:
capacitor.config.js- package scripts/dependencies in
package.jsonforcap sync/open/doctor
- Extended mobile lifecycle bridge for native wrappers:
src/core/platform/PlatformService.jssrc/core/platform/MobilePlatform.js- host pause/resume now also listens for Capacitor
Applifecycle events when running natively.
Milestone 25 started. Capacitor sync and native launch verification are blocked in this environment.
- Capacitor CLI v6 in this Node 20 environment does not honor ESM
capacitor.config.js(webDirfalls back to defaultwww), while Capacitor CLI v8 (which supports current config behavior) requires Node >=22. - Native platform launch verification requires host OS toolchains unavailable in this container:
- Android launch requires Android SDK/emulator or device and Gradle toolchain.
- iOS launch requires macOS + Xcode + iOS simulator/device.
- Exact requirements to unblock:
- Use Node >=22 with Capacitor CLI v8 or convert config loading to a supported non-ESM format for CLI v6.
- Run on a machine with Android SDK (and for iOS, macOS with Xcode).
- Install dependencies and sync native projects:
npm install && npm run cap:sync. - Add/open native projects and launch:
- Android:
npx cap add android(first time), thennpm run cap:open:androidand run app. - iOS:
npx cap add ios(first time), thennpm run cap:open:iosand run app.
- Android: