device.setLocation() on Android #4463
-
I'm newbie in Android development, in the document of setLocation method mentions "The correct permissions must be set in your app manifest.". Can someone please explain this point to me? Because the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @thuandohoang, <manifest ...>
...
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
...
<application ... Do you get any error message when trying to use the |
Beta Was this translation helpful? Give feedback.
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:
Do you get any error message when trying to use the
setLocation
method after adding this to your manifest and rebuilding your app?