Skip to content
This repository has been archived by the owner on Jan 12, 2019. It is now read-only.

canReadCardWithCamera returns false on Nexus 7(Marshmallow) but works on Lollipop #72

Closed
DavidRajPaul opened this issue May 6, 2016 · 1 comment

Comments

@DavidRajPaul
Copy link

The CardScanner is not working on my NEXUS 7(Marshmallow). But this is working fine in Lollipop. Does anyone know the reason.

I am using the compile 'io.card:android-sdk:5.3.4' in my app gradle.

This is where i check canReadCardWithCamera.
protected void onResume() {
super.onResume();

    if (CardIOActivity.canReadCardWithCamera()) {
        scanButton.setText("Scan a credit card");
    } else {
        scanButton.setText("Enter credit card information");
    }
}

I guess the runtime permissions are the reason for this issue. But i have manually enabled the camera permission from my app's settings.

Does anyone know a solution for this. Please help.

@braebot
Copy link
Member

braebot commented May 6, 2016

Closing as a duplicate of card-io/card.io-Android-SDK#136.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants