tbruyelle / RxPermissions

Android runtime permissions powered by RxJava2
Apache License 2.0
10.48k stars 1.31k forks source link

Requesting permission from the same group only requests one on Android 8 (Oreo) #228

Closed micHar closed 6 years ago

micHar commented 6 years ago

Consider following code:

 rxPermissions
            .requestEach(Manifest.permission.WRITE_EXTERNAL_STORAGE, Manifest.permission.READ_EXTERNAL_STORAGE)
            .subscribeOn(ioScheduler)
            .observeOn(mainScheduler)
            .subscribe { }

It will show the permission dialog once and when I click Allow it will return granted=true for READ_EXTERNAL_STORAGE, but granted=false for WRITE_EXTERNAL_STORAGE. Works the same way when I call request(...)

micHar commented 6 years ago

Actually nevermind, I checked requesting them one by one and it still did not work, so I checked stackoverflow and it appears it's an issue from outside of the scope of your library: https://stackoverflow.com/questions/48172519/oreo-write-external-storage-permission.

Thanks for a great lib btw :)