Skip to content

Commit 0e19ea4

Browse files
committed
fix: improve documentation
1 parent 108d6cb commit 0e19ea4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ Regarding permissions, you may need the following settings in your `AndroidManif
3434
<uses-permission android:name="android.hardware.sensor.proximity"/>
3535
<uses-permission android:name="android.permission.BODY_SENSORS_BACKGROUND"/>
3636
<uses-permission android:name="android.permission.ACTIVITY_RECOGNITION"/>
37-
<uses-permission android:name="android.permission.ACTIVITY_RECOGNITION"/>
37+
<uses-permission android:name="android.permission.WAKE_LOCK"/>
38+
39+
NB: the WAKE_LOCK permission is only needed if you run `setProximityScreenOff(true)` before listening to events
3840

3941
**Some recent devices use virtual proximity sensors. There are no physical sensors. I found it hard to trust the sensor information in this case.**

0 commit comments

Comments
 (0)