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

Can't use CardIOActivity.canReadCardWithCamera() with API23 permission model #136

@trevor-e

Description

@trevor-e

Required Information

  • card.io Android SDK Version: 5.3.2
  • Android Version and Device: Nexus 6P API23

Issue Description

I'm trying to use CardIOActivity.canReadCardWithCamera() to only show the card scanning icon if the device supports it. When targeting API23, this method no longer works because it fails every time when trying to connect to the camera, presumably because the permission hasn't been approved. Ideally there should be a safe way to check whether the device hardware supports CardIO's features without calling Camera.open().

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions