Coder Social home page Coder Social logo

Comments (7)

tzutalin avatar tzutalin commented on June 11, 2024

having the same issue. unable to work for compileSdkVersion = 33

from rxpermissions.

hkercn avatar hkercn commented on June 11, 2024

弃用吧,部分海外13版本手机,权限请求结果都是false
2023-06-30 11:57:53,176 - requestSinglePermission-2 isHandle:false,granted:false,name:android.permission.READ_EXTERNAL_STORAGE,shouldShowRequestPermissionRationale:false
2023-06-30 11:57:53,215 - requestSinglePermission-2 isHandle:true,granted:false,name:android.permission.WRITE_EXTERNAL_STORAGE,shouldShowRequestPermissionRationale:false
2023-06-30 11:59:25,713 - initAllMusicList localMusicList.empty:true
2023-06-30 11:59:30,678 - requestSinglePermission-1 isHandle:false,granted:true,name:android.permission.RECORD_AUDIO,shouldShowRequestPermissionRationale:false
2023-06-30 11:59:30,680 - requestSinglePermission-1 isHandle:true,granted:true,name:android.permission.MODIFY_AUDIO_SETTINGS,shouldShowRequestPermissionRationale:false
2023-06-30 11:59:30,680 - requestSinglePermission-1 isHandle:true,granted:true,name:android.permission.READ_PHONE_STATE,shouldShowRequestPermissionRationale:false
2023-06-30 11:59:35,214 - requestPermissionsSingleRequest-1 hasHandler:false,granted:false,name:android.permission.READ_EXTERNAL_STORAGE,shouldShowRequestPermissionRationale:false
2023-06-30 11:59:35,246 - requestPermissionsSingleRequest-1 hasHandler:false,granted:true,name:android.permission.READ_MEDIA_AUDIO,shouldShowRequestPermissionRationale:false
2023-06-30 12:00:17,783 - requestPermissionsSingleRequest-1 hasHandler:false,granted:false,name:android.permission.READ_EXTERNAL_STORAGE,shouldShowRequestPermissionRationale:false
2023-06-30 12:00:17,808 - requestPermissionsSingleRequest-1 hasHandler:false,granted:false,name:android.permission.WRITE_EXTERNAL_STORAGE,shouldShowRequestPermissionRationale:false
2023-06-30 12:00:17,836 - requestPermissionsSingleRequest-1 hasHandler:false,granted:true,name:android.permission.READ_MEDIA_IMAGES,shouldShowRequestPermissionRationale:false

不论用户是否真正授予了权限!

from rxpermissions.

xuexirong avatar xuexirong commented on June 11, 2024

@hkercn 有推荐的么

from rxpermissions.

EigenIsCoding avatar EigenIsCoding commented on June 11, 2024

当 targetSDK = 33 , READ_EXTERNAL_STORAGE 就无效了,申请时需要动态替换成细化后的权限,并且在manifest里面也要更新,测试是可以的

from rxpermissions.

chinalwb avatar chinalwb commented on June 11, 2024

当 targetSDK = 33 , READ_EXTERNAL_STORAGE 就无效了,申请时需要动态替换成细化后的权限,并且在manifest里面也要更新,测试是可以的

Tested and confirmed it works as described.
Specifically, if I request Manifest.permission.READ_MEDIA_IMAGES like this:

rxPermissions.requestEachCombined(Manifest.permission.READ_MEDIA_IMAGES)
    .subscribe(permission -> {
       Log.d("xx", "permission granted? " + permission.granted); // prints true if I tap on Allow
    })

However, if I request like this (appending WRITE_EXTERNAL_STORAGE):

rxPermissions.requestEachCombined(Manifest.permission.READ_MEDIA_IMAGES, Manifest.permission.WRITE_EXTERNAL_STORAGE)

I tapped Allow but still, I got permission.granted == false.

I think this is also compliance with @hkercn 's comment.

from rxpermissions.

KarlLargerFeld avatar KarlLargerFeld commented on June 11, 2024

from rxpermissions.

xuexirong avatar xuexirong commented on June 11, 2024

@KarlLargerFeld rxPermissions.requestEachCombined(Manifest.permission.READ_MEDIA_IMAGES)
.subscribe(permission -> {
Log.d("xx", "permission granted? " + permission.granted); // prints true if I tap on Allow
})
这个方案是可以的,问题已经得到解决,这个问题我关了

from rxpermissions.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.