MobileMESH / ProjectM

MIT License
0 stars 0 forks source link

Ask the user for runtime permissions #30

Closed VeriHeppi closed 1 year ago

VeriHeppi commented 1 year ago

requesting permissions at runtime are as follows:

Ask for a permission in context, when the user starts to interact with the feature that requires it. Don't block the user. Always provide the option to cancel an educational UI flow, such as a flow that explains the rationale for requesting permissions. If the user denies or revokes a permission that a feature needs, gracefully degrade your app so that the user can continue using your app, possibly by disabling the feature that requires the permission. Don't assume any system behavior. For example, don't assume that permissions appear in the same permission group. A permission group merely helps the system minimize the number of system dialogs that are presented to the user when an app requests closely related permissions.

VeriHeppi commented 1 year ago

https://developer.android.com/static/images/training/permissions/workflow-runtime.svg

VeriHeppi commented 1 year ago

For UI/UX team app needs to show educational information on why the permissions are required.