Dexter icon indicating copy to clipboard operation
Dexter copied to clipboard

Camera permissions not click allow and deny direct callback

Open star-andy opened this issue 7 years ago • 7 comments

Please forgive my English is not good

Expected behaviour

Camera access normal callback

Actual behaviour

Camera permissions not click allow and deny direct callback

Steps to reproduce

 mServiceScanView.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Dexter.withActivity(getActivity())
                        .withPermission(Manifest.permission.CAMERA)
                        .withListener(ServiceLazyFragment.this)
                        .check();
            }
        });

Click on the screen after permission to apply for dialog,At the same time direct callback,I don't have a click allow and deny

 @Override
    public void onPermissionGranted(PermissionGrantedResponse response) {
        KLog.e("允许相机权限");
    }

E/ServiceLazyFragment.java: [ (ServiceLazyFragment.java:179)#OnPermissionGranted ] 允许相机权限 Mobile version: image

Version of the library

com.karumi:dexter:4.1.0

star-andy avatar Jun 08 '17 09:06 star-andy

I think that is a bug. You changed your camera permission manually. Unistall your app and reinstall.

djamb avatar Jun 13 '17 14:06 djamb

Uninstall or reinstall is still the same problem ,I don't have to manually modify permissions, is through the code to access

star-andy avatar Jun 14 '17 03:06 star-andy

@qinyang1018 what compilationversion are you using in you build.gradle?

flipper83 avatar Jul 14 '17 14:07 flipper83

@flipper83 I'm sorry To reply until now image image this is my build.gradle

star-andy avatar Jul 16 '17 07:07 star-andy

Please be sure that you have your Camera permission in your AndroidManifest.xml. Had this same behaviour times ago.

vancelopes avatar Oct 18 '17 17:10 vancelopes

it have on AndroidManifest.xml

star-andy avatar Oct 19 '17 02:10 star-andy

Is this problem solved ?

DovSnier avatar Dec 05 '17 01:12 DovSnier