RxPermissions icon indicating copy to clipboard operation
RxPermissions copied to clipboard

Bug: requestEach callback do not contain each permission result

Open wangkai4556 opened this issue 2 years ago • 3 comments

Prerequisites

1.with appcompat 1.3.0 and above 2.with permission list paramters in a special order like below

READ_PHONE_STATE CAMERA ACCESS_FINE_LOCATION

must in this order

Issue description

requestEach callback do not contain each permission result. because above appcompat 1.3.0 system do not callback permission result in the order that we provide by parameters, so some publishSubject may send before subscribe.

Actual behavior

only contain CAMERA and READ_PHONE_STATE permission

Expected behavior

contain ACCESS_FINE_LOCATION and CAMERA and READ_PHONE_STATE permission

Steps To Reproduce

config gralde
implementation 'androidx.appcompat:appcompat:1.3.0' implementation 'com.github.tbruyelle:rxpermissions:0.12'

config androidManifest.xml with permission

use rxpermission

RxPermission usage code

        RxPermissions(this).requestEach(
            Manifest.permission.READ_PHONE_STATE,
            Manifest.permission.CAMERA,
            Manifest.permission.ACCESS_FINE_LOCATION
        ).subscribe {
            Log.e("=====", it.toString()) 
        }

Lib Version

implementation 'com.github.tbruyelle:rxpermissions:0.12'
implementation 'androidx.appcompat:appcompat:1.3.0'

Screenshots above appcompat 1.3.0 1

2

3

with appcompat 1.1.0

4

5

wangkai4556 avatar Mar 28 '22 08:03 wangkai4556

This have indeed the problem, have you solved it?

darrenjh avatar May 17 '22 11:05 darrenjh

This have indeed the problem, have you solved it? 这个库看起来没有什么人在维护了,并且还有其他严重的bug,不建议继续使用。我自己实现了权限请求,你可以考虑使用andpermission

wangkai4556 avatar May 17 '22 13:05 wangkai4556

好的,谢谢

---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2022年05月17日 21:29 | | 收件人 | @.> | | 抄送至 | @.@.> | | 主题 | Re: [tbruyelle/RxPermissions] Bug: requestEach callback do not contain each permission result (Issue #355) |

This have indeed the problem, have you solved it? 这个库看起来没有什么人在维护了,并且还有其他严重的bug,不建议继续使用。我自己实现了权限请求,你可以考虑使用andpermission

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

darrenjh avatar May 17 '22 15:05 darrenjh