Skip to content

Use a library for checking various permissions #1773

@maskaravivek

Description

@maskaravivek

Summary:

Our app asks for runtime permissions in various places and in the past we have run into several issues/crashes because of missing permissions checks. The process of ensuring that permission is granted is cumbersome:

  • check for permission
  • request permission if not granted
  • check if the user granted permission
  • execute method or else handle failure

Making sure that all these steps are followed correctly is a tedious task. It might be fruitful if we start using a 3rd party library for checking and handling permissions. I have tried out these two libraries in the past and found both of them to be quite useful.

The first library uses simple annotations and the second library provides callback. All the hassle of checking and requesting permissions is taken care by the library itself.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions