How do I test the Radar SDK with mocked, spoofed, or GPX locations in the emulator or simulator?

After you call Radar.startTracking(), the SDK will wake up while the user is moving (usually every 2-3 minutes), then shut down when the user stops (usually within 3-5 minutes). See our SDK documentation for more information.

More frequent location updates, or location updates when already stopped, are rate limited to save battery. This makes testing background tracking with mocked, spoofed, or GPX locations difficult. We recommend testing background tracking on a real device instead.

However, you can force a location update and test foreground tracking by calling Radar.trackOnce(), assuming you do not exceed the rate limit of 60 requests per hour per user.

Did this help answer your question?

thumbs up
thumbs down

Thanks for the feedback! 🙏🏽

Help by drift