Follow this guide to publish BuildTrac to the App Store and Google Play. Once published, your subscribers can download the app and enjoy background GPS tracking.
This determines whether your app shows YOUR login page or Lovable's login page
✅ For App Store Distribution
The default capacitor.config.ts is ready for production.
🔧 For Development Testing
Use capacitor.config.dev.ts for hot-reload.
If you're seeing Lovable's login instead of BuildTrac's:
capacitor.config.ts in your cloned projectserver: { url: ... } blocknpm run build && npx cap syncGet your code on GitHub for local development
In Lovable, click the "Export to GitHub" button in the top-right menu. This creates a repository with all your code.
github.com/yourusername/buildtracDownload the code and install dependencies
git clone https://github.com/yourusername/buildtrac.git
cd buildtrac
npm installReplace yourusername with your actual GitHub username.
Set up iOS and/or Android projects
npx cap add ios
npx cap add androidCompile your web app and sync to native projects
npm run build
npx cap syncRun these commands every time you want to update the native app with changes from Lovable.
Add required location permissions for background GPS
How to find and edit Info.plist:
ios → App → App folderInfo.plist and select "Open With" → "TextEdit" (or any text editor)<dict> near the top</dict> tagFull file path: ios/App/App/Info.plist
Add these lines inside the <dict> section:
<key>NSLocationWhenInUseUsageDescription</key>
<string>BuildTrac needs your location to track mileage for your business trips.</string>
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
<string>BuildTrac needs background location access to continue tracking mileage when you switch apps or lock your phone.</string>
<key>UIBackgroundModes</key>
<array>
<string>location</string>
</array>💡 Tip: You can also edit Info.plist directly in Xcode. Open the ios/App folder in Xcode, select Info.plist in the left sidebar, then click the "+" button to add new keys.
Launch the native project in Xcode or Android Studio
iOS
npx cap open iosOpens in Xcode
Android
npx cap open androidOpens in Android Studio
$99/year developer account
$25 one-time fee
When you make changes in Lovable and want to update the native app:
cd buildtrac
git pull origin main
npm install
npm run build
npx cap sync
npx cap open ios # or androidThen archive and submit the new version through Xcode or Android Studio.
Need help? Check out the Capacitor documentation for more details.