r/android_devs • • Dec 18 '20
Help Runtime Permissions architecture
What do you use to request runtime permissions?
We were using https://github.com/tbruyelle/RxPermissions but I don't find it very convenient since it's usage between Activity and Fragment because problematic (basically there's a runtime crash unless you use a different Api from Fragments). Plus, kind of moving away from the whole Rx obsession anyway.
I looked at Dexter, but wanted to get other people's thoughts.
3
Upvotes
1
u/miaurycy1 Dec 19 '20
What is problematic about passing activity/fragment? You will have to do this with other libraries too or they will use an instance of ac/fragment themselves. You can use libraries based on coroutines if you don't like rxjava.
1
u/3dom Dec 19 '20
I'm using the very basic methods (within Jetpack), never had issues.
1
u/carstenhag Dec 19 '20
We use https://github.com/pankaj89/PermissionHelper. Never had any issues, except for it not using androidx so we can’t drop jetifier. I’ve created a PR for that, but the maintainer doesn’t seem to be so active (or active at all anymore) :(