Skip to content
This repository was archived by the owner on Jul 2, 2021. It is now read-only.
This repository was archived by the owner on Jul 2, 2021. It is now read-only.

Dexter doesn't notify when the app goes in background with permission dialog open and when returning doing tap in the app icon, the permission dialog is close. #271

@aljosta

Description

@aljosta

Expected behaviour

Notify on any callback or listener of dexter when the permissions array and the grant result array are empty on method onRequestPermissionResult.

Actual behaviour

It is not notifying these case in any callback or listener of dexter.

Steps to reproduce

It's happen when the launchMode=standard for the main activity in the app manifest, when the permission dialog is open, then I send to background my app , then return to the app doing tap in the icon, then the permission dialog is already close but dexter never notify this case. When I implement de requestPermission and onRequetPermissionResult directly in my app, this case is notified.

Version of the library

5.0.0, also tested with 6.2.1

The following is the dexter implementation in my app.

Dexter.withActivity(activity)
                .withPermissions(arrayPermisos)
                .withListener(new MultiplePermissionsListener() {
                    @Override
                    public void onPermissionsChecked(MultiplePermissionsReport report) {
                    }
                    @Override
                    public void onPermissionRationaleShouldBeShown(List<PermissionRequest> permissions, PermissionToken token) {
                        token.continuePermissionRequest();
                    }
                })
                .withErrorListener(new PermissionRequestErrorListener() {
                    @Override
                    public void onError(DexterError error) {
                        Log.e("Dexter", "There was an error: " + error.toString());
                    }
                })
                .onSameThread().check();

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions