You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The idea is to explore if it is possible to ask for permissions whenever the user starts consuming any sensor state.
If implemented successfully, the developers won't need to write code for asking permissions for the sensors they are using, the library will do it for them 🎉 They will only need to add the <uses-permission> tag inside AndroidManifest.xml for the required permission (check if even that can be avoided with the library's own Manifest file 🤷).
For example: Whenever a user starts consuming values from rememberHeartRateSensorState, the required permission i.e. android.permission.BODY_SENSORS should automatically be requested first and only when the user grants it, the state function should start emitting sensor values.
TODO
Research which sensor requires what permission (in progress)
Search which permission is required for High Speed / Real-Time sensor data emission
Make sure to emit default value (0 for Float and false for Boolean) while the permission is being requested
Expose the permission state (granted / denied) from the sensor state classes
Update documentation for all sensor state classes to inform the dev which permission is required to access that sensor's information
The idea is to explore if it is possible to ask for permissions whenever the user starts consuming any sensor state.
If implemented successfully, the developers won't need to write code for asking permissions for the sensors they are using, the library will do it for them 🎉 They will only need to add the
<uses-permission>
tag insideAndroidManifest.xml
for the required permission (check if even that can be avoided with the library's own Manifest file 🤷).For example: Whenever a user starts consuming values from
rememberHeartRateSensorState
, the required permission i.e.android.permission.BODY_SENSORS
should automatically be requested first and only when the user grants it, the state function should start emitting sensor values.TODO
0
for Float andfalse
for Boolean) while the permission is being requestedResources
Permissions required
android.permission.BODY_SENSORS
android.permission.ACTIVITY_RECOGNITION
<uses-permission android:name="android.permission.HIGH_SAMPLING_RATE_SENSORS"/>
The text was updated successfully, but these errors were encountered: