Skip to content

Request BLE permission before waiting to advertise #474

Description

@nodh

P2 Badge Request BLE permission before waiting to advertise

When NFC handover includes any BLE method on Android 12+ and the BLUETOOTH_* runtime permissions have not already been granted, model.start(true) leaves the presentation model in CHECK_PERMISSIONS. Because the UI launch/request is disabled here, and listenOnMethods() waits for the state to leave CHECK_PERMISSIONS before advertising transports, no code ever calls setPermissionState() or requests permission, so an external NFC presentation hangs after handover instead of progressing.

Originally posted by @chatgpt-codex-connector[bot] in #416 (comment)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions