Right now the emulated prompt on Android doesn't let the user cancel the NFC operation, although the system-level prompts that appear on Windows/iOS allow the user to cancel the operation without scanning anything.
This PR adds the ability to cancel the operation in the emulated prompt to equalize user experience across all software platforms.
Checklist
Changes to the drivers
[ ] (PR Author) The affected drivers were manually tested
Changes to CLI
[ ] (PR Author) The change was manually tested with the CLI
[ ] (PR Author) The affected CLI features are working with the standalone binary (at least one platform)
[ ] (Checked by maintainer) The CLI test procedure was run by the project's maintainer
Changes to web library
[x] (PR Author) The change was manually tested with the web library included within a classic HTML application (flat libhalo.js)
[x] (PR Author) The change was manually tested with the web library included within an app based on frontend framework (React.js or similar based on webpack)
[ ] (Checked by maintainer) The web test suite was run by the project's maintainer
Changes to nfc-manager driver
[ ] (PR Author) The change was manually tested in React Native app
[ ] (Checked by maintainer) The test suite was run through the test React Native project
Description
Right now the emulated prompt on Android doesn't let the user cancel the NFC operation, although the system-level prompts that appear on Windows/iOS allow the user to cancel the operation without scanning anything.
This PR adds the ability to cancel the operation in the emulated prompt to equalize user experience across all software platforms.
Checklist
Changes to the drivers
Changes to CLI
Changes to web library
libhalo.js
)Changes to nfc-manager driver