Keep Data Current
Sync ensures your warehouse records match what’s on the server. Other users see your updates immediately after sync.
Sync Settings in Shipedge Warehouse Pro manages how your device synchronizes data with the Shipedge server. The app stores data locally and syncs it to the server to keep your warehouse records up to date.
Sync happens automatically when you perform actions, but you can also sync manually when needed. Understanding sync helps ensure your data is always current and nothing gets lost.
Sync ensures your warehouse records match what’s on the server. Other users see your updates immediately after sync.
If your device loses connection or crashes, synced data is safe on the server. Unsynced data stays on your device until you sync.
Sync records when work was completed. This helps track productivity and resolve timing questions.
Some operations require sync to finish. The app shows alerts when sync is needed to complete your work.
The app shows sync status in different ways:
A red alert flag appears next to the Sync button when you have data waiting to sync. This happens in the Time Tracking module (TimeTrack.java).
What triggers the alert:
What the alert means:
The Sync button lets you manually sync pending data. It’s located in the Time Tracking screen.
When to use:
What happens:
Open Time Tracking
Navigate to Time Tracking from the main menu. The app checks for pending sync automatically when the screen loads.
Check for Sync Alert
Look at the top of the screen. If you see a red alert flag next to the Sync button, you have data waiting to sync.
Tap Sync Button
Tap the Sync button to start syncing. The app collects all pending data and sends it to the server.
Wait for Completion
The sync happens in the background. Wait a few seconds for it to complete. The alert flag disappears when sync finishes successfully.
Verify Sync Status
If the alert flag is gone, your data synced successfully. If it’s still visible, check your internet connection and try again.
The app checks for pending sync automatically:
When checks happen:
TimeTrack.java calls verfySync())What gets checked:
When you tap the Sync button:
ConnectToDataBaseServerProjectAsync.java to send dataThe sync process handles these data types:
Project Time Entries:
Status Updates:
The app uses different status values to track sync:
Data is waiting to sync. This appears in local database records that haven’t been sent to the server yet.
Data was successfully sent to the server. The server confirmed receipt and processing.
Red flag appears when you have records with “Sync” status. Tap Sync button to send data.
No pending sync. All data is synced and up to date with the server.
Sync your data regularly, especially before closing the app or switching devices. This prevents data loss and keeps records current.
Always check for the alert flag when opening Time Tracking. If it’s visible, sync before starting new work.
Ensure you have a stable internet connection before syncing. Poor connections can cause sync failures.
Wait for sync to complete before closing the app. The alert flag disappearing confirms successful sync.
Sync after making important changes or completing projects. Don’t rely only on automatic checks.
After syncing, verify your changes appear on the server if possible. This confirms sync worked correctly.
Problem: You tapped Sync, but the alert flag is still visible.
Solutions:
Problem: Tapping Sync doesn’t do anything.
Solutions:
Problem: You synced successfully, but data doesn’t appear on the server.
Solutions:
Problem: You need to tap Sync multiple times before it works.
Solutions:
Sync uses these local database tables:
LogError Table:
LogProject Table:
Sync uses ConnectToDataBaseServerProjectAsync.java:
Endpoint: Warehouse server URL (configured in settings)
Method: POST with JSON payload
Request Format:
[ { "opt": "Sync", "id": "record_id", "userId": "user_id", "projectId": "project_id", "startTime": "time", "stopTime": "time", "comment": "comment_text", "regId": "registration_id" }]Response: Array of status updates for each synced record
The app verifies sync status using verfySync() method:
LogError table for records with status “Sync”Next Steps:
Related Activities:
TimeTrack.java - Time Tracking Activity with sync functionalityConnectToDataBaseServerProjectAsync.java - API service for sync operationsSync Settings ensure your local data stays synchronized with the Shipedge server:
✅ Automatic checks - App verifies sync status when you open Time Tracking
✅ Visual alerts - Red flag shows when sync is needed
✅ Manual sync - Tap Sync button to send pending data
✅ Status tracking - Clear indicators show sync progress
✅ Data safety - Synced data is safe on the server
Sync regularly to keep your warehouse records current and prevent data loss.