Syntax
Arguments
platform
Platform to watch. Optional.androidora- Watch Android appiosori- Watch iOS app
target
The device/simulator UDID to watch. Optional. For iOS, specifies which simulator to sync changes to.Options
—ios
Target iOS platform (shorthand forplatform=ios).
—android
Target Android platform (shorthand forplatform=android).
Examples
Watch Android app
Watch iOS app on specific simulator
Watch using shorthand flags
Requirements
Watchman
This command requires Facebook’s Watchman file watcher: macOSWhat it does
- Checks dependencies: Verifies Watchman is installed
- Starts file watcher: Monitors your Laravel application directory
- Detects changes: Watches for file modifications, additions, deletions
- Syncs to device: Pushes changes to the running mobile app
- Reloads app: Triggers automatic reload in the mobile app
How it works
Android
- Uses
adb pushto sync files to the device - Monitors
app/,config/,resources/,routes/directories - Triggers app reload via intent broadcast
iOS
- Uses iOS Simulator’s file sharing to sync files
- Monitors same directories as Android
- Triggers app reload via URL scheme
Watched directories
By default, watches:app/- Application codeconfig/- Configuration filesresources/- Views, assetsroutes/- Route definitionspublic/- Public assets
vendor/, node_modules/, and storage/ are ignored.
Workflow
Typical development workflow with watch:-
Start the app with watch enabled:
-
Or start watch separately while app is running:
- Edit your code in your IDE
- Save the file
- Changes automatically sync and app reloads
- See changes in seconds!
Performance tips
- Frontend assets: Use Vite’s dev server for faster CSS/JS updates
- Large files: Exclude from watch if not needed
- Multiple devices: Run separate watch processes for each
Troubleshooting
Watchman not found
Changes not syncing
- Check device is connected:
adb devices(Android) - Verify app is running
- Check Watchman is running:
watchman watch-list - Restart watch command
Slow syncing
- Check network connection (iOS Simulator)
- Reduce number of watched files
- Clear Watchman cache:
watchman watch-del-all
Alternative: Run with —watch
You can also enable watch mode when running the app:native:run and native:watch in a single command.
See also
- native:run - Build and run with —watch option
- native:tail - View app logs in real-time