Skip to content

device.setLocation() on Android #4463

Answered by asafkorem
thuandohoang asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @thuandohoang,
I guess you tried to follow this doc: https://wix.github.io/Detox/docs/api/device/#devicesetlocationlat-lon
It should work, you need to add in your manifest:

<manifest ...>
   ...
   <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
   ...
   <application ...

Do you get any error message when trying to use the setLocation method after adding this to your manifest and rebuilding your app?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@thuandohoang
Comment options

Answer selected by thuandohoang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants