By default, the Hardware Security SDK does not register Intent filters for USB device classes and NFC Intents.
Thus, it only handles USB and NFC when your app is in the foreground.
However, if you like your app to start directly when a Security Key is connected, you can decide to use our
USB Intent Filter
To enable USB dispatching, add the following to your
If included, the app will be registered for dispatching Security Keys connected via USB. Without this, the app will be unable to persist permission to access a USB Security Key. To avoid asking the user for permission every time a USB Security Key connects, it is recommended to include this dependency.
NFC Intent Filter
To enable NFC dispatching, add the following to your
If included, NFC Security Key discovery will work also while the app is not in the foreground. This is strictly optional, NFC dispatch will work with no limitations while the app is in the foreground.
Multiple Apps Registered on the Same Intents
Kepp in mind that if more than one app is registered to the USB device classes or NFC Intents, Android will show an Activity chooser to the user.