Skip to main content
Transform your testing process with: Real Device Features, Company-wide Licences, & App Percy
No Result Found
Get your setup working faster. Join our Discord for optimisation tips from elite testers. Join our DiscordJoin our Discord

Simulate GPS location for Flutter integration tests

Simulate GPS location of the device for your Flutter test executions on BrowserStack App Automate.

GPS geolocation testing enables you to simulate the location of the device to specific GPS coordinates in order to test location-based scenarios for your app.

In order to specify the GPS coordinates, you need to set the gpsLocation parameter in the builds REST API (Android or iOS) to start Flutter test execution. You will be required to pass the latitude and longitude of the desired location.

Table: The gpslocation parameter

Parameter Description Value
gpsLocation Simulate the location of the device to a specific GPS location. Latitude followed by longitude
Acceptable range for latitude is -90 to +90 and for longitude is -180 to +180.
Example: 40.730610,-73.935242

Example cURL request for test execution:

Terminal
Copy icon Copy
Terminal
Copy icon Copy
  • Manage your uploaded apps or test packages using our REST API (Android or iOS).

  • Use the list recent builds API (Android or iOS) to list your recently uploaded apps.

  • Delete your uploaded apps or test packages using the delete API endpoint (Android or iOS).

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback

Is this page helping you?

Yes
No

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback!

Talk to an Expert
Talk to an Expert
Download Copy Check Circle