While developing thermo-demo, which uses Expo.Fingerprint, I noticed that when I'd make changes to the app, Fingerprint auth would sometimes automatically fail auth with the reason user_cancel
. I mentioned this to Brent and he suggested I create a repo with a minimal case, issolating the problem so they coudl better investigate. This is that repo.
- clone the repo
yarn
ornpm install
- The project in Expo
- Install the Expo app for your iOS or Android device
- Have a blast!
- Launch app through expo on an Android phone with fingerprint auth (unsure if the problem also exists on iPhone)
NOTE: Everything works as expected. I see the "Waiting for fingerprint..." message.
- Refresh app using the tray until instead of "Waiting for..." message as expected, you get a "user_cancel" error. It may take a couple times.
NOTE: no matter how many times I refresh the app, I rarely get back to a working state.
- Close both the app and expo. Restart Expo, then launch the app.
NOTE: we're working again.