Syncing Config
Use sync after manual changes to pwa-config.json.
What sync does
From CLI sync implementation, it performs:
- Bundle ID sync in
PWAKitApp.xcodeproj/project.pbxproj Info.plistsync for:WKAppBoundDomainsfromorigins.allowed + origins.auth- orientation keys (
UISupportedInterfaceOrientationsand iPad variant) CFBundleDisplayNameandCFBundleName
- Color asset sync for launch background and accent color
- Icon resize sync from
src/PWAKit/Resources/AppIcon-source.png - Privacy validation checks for enabled features
Modes
Apply
bash
npx @pwa-kit/cli syncDry-run
bash
npx @pwa-kit/cli sync --dry-runValidate-only (CI-friendly)
bash
npx @pwa-kit/cli sync --validatePrivacy validation rules
When corresponding features are enabled, sync validates these keys:
cameraPermission->NSCameraUsageDescriptionmicrophonePermission->NSMicrophoneUsageDescriptionlocationPermission->NSLocationWhenInUseUsageDescriptionbiometrics->NSFaceIDUsageDescriptionhealthkit->NSHealthShareUsageDescription+NSHealthUpdateUsageDescriptionnotifications->UIBackgroundModesincludesremote-notification
Recommended workflow
- Edit
src/PWAKit/Resources/pwa-config.json. - Run
npx @pwa-kit/cli sync --validate. - If needed, run
npx @pwa-kit/cli sync. - Build and test in Xcode.
