Merged
Conversation
- Switch BrowserRouter → HashRouter (Capacitor loads from filesystem, history-API paths 404 without a server) - Add VITE_IOS_BUILD flag (set via npm run build:ios / --mode ios) that disables VitePWA SW registration for native builds - Gate InstallPrompt and UpdateNotification behind !isIosBuild in App.tsx; tree-shaking confirms auth components absent from iOS bundle - Hide UserMenu, AuthDialog, SyncStatus in Navigation.tsx for iOS — local-only storage means no sign-in or sync UI is needed - Replace window.location.reload() in Settings with window.location.replace() to avoid interrupting the Capacitor JS bridge on data clear - Add capacitor://localhost to CSP directives so WKWebView can load assets - Add .env.ios with VITE_IOS_BUILD=true (no Supabase keys → localStorage mode) - Add build:ios npm script (vite build --mode ios) https://claude.ai/code/session_01P4dgLTrB7NAGpr1qBiG3jz
Deploying timetrackerpro with
|
| Latest commit: |
788c8d4
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://5c018cd5.timetrackerpro.pages.dev |
| Branch Preview URL: | https://claude-capacitor-ios-plannin.timetrackerpro.pages.dev |
- Install @capacitor/core, @capacitor/ios (deps) and @capacitor/cli (devDep) - Write capacitor.config.ts: appId com.adamjolicoeur.timetrackerpro, webDir dist, contentInset always, scrollEnabled false, limitsNavigationsToAppBoundDomains true - npx cap add ios → generates ios/ Xcode project (Capacitor 8.3.1, iOS 15+ minimum via Package.swift SPM) - npx cap sync ios → web assets and config confirmed copied cleanly - Bundle ID com.adamjolicoeur.timetrackerpro wired into project.pbxproj - Add sync:ios script (build:ios + cap sync ios in one command) - ios/App/App/public gitignored (regenerated on every sync) https://claude.ai/code/session_01P4dgLTrB7NAGpr1qBiG3jz
c042820 to
788c8d4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
history-API paths 404 without a server)
that disables VitePWA SW registration for native builds
tree-shaking confirms auth components absent from iOS bundle
local-only storage means no sign-in or sync UI is needed
to avoid interrupting the Capacitor JS bridge on data clear