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.

Library should provide proper message if permission declaration doesn't exist on AndroidManifest.xml #229

@khadkarajesh

Description

@khadkarajesh

Expected behaviour

If any permission has requested on the code but hasn't declared on the manifest. We should provide a proper message to declare permission on manifest

Actual behaviour

Not showing any message to declare in manifest

Steps to reproduce

Execute the code without declaring camera permission on the manifest.

     Dexter.withActivity(context)
            .withPermission(Manifest.permission.CAMERA)
            .withListener(object : PermissionListener {
                override fun onPermissionGranted(response: PermissionGrantedResponse) {
                }

                override fun onPermissionDenied(response: PermissionDeniedResponse) {
                }

                override fun onPermissionRationaleShouldBeShown(
                    permission: com.karumi.dexter.listener.PermissionRequest,
                    token: PermissionToken
                ) {
                }
            }).withErrorListener {

            }.check()

Version of the library

5.0.0

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