▪️Background Mode
One of the challenges with mobile applications is the need for continuous active usage, which can be inconvenient and resource-draining. GrabWay addresses this with Background Mode, allowing users to optimize their experience without keeping the app open.
Activation Process:
Upon starting the GrabWay app, users can activate Background Mode, enabling the app to run in the background.
Distance Accumulation:
The app uses the smartphone’s GPS system to track and accumulate travel distance, ensuring that users continue to earn rewards even when the app is minimized or in the background.
Distance Calculation:
The following code demonstrates the calculation of total distance based on incremental GPS readings:
Total Distance (D) = Σ (Δd)
( D ) = Total accumulated distance
( Δd ) = Incremental distance measurements taken during background operation
GPS Signal Strength Indicators:
To ensure accurate distance recording, the app visually indicates the GPS signal strength:
White: No GPS signal detected.
Red: Poor GPS signal, which may lead to inaccurate distance tracking.
Green: Strong GPS signal, ensuring precise distance tracking for rewards.
Last updated