biometric_storage icon indicating copy to clipboard operation
biometric_storage copied to clipboard

FaceId popup not show when call read()

Open skyphantomhz opened this issue 3 years ago • 6 comments

Hi

I'm build on real iOS device. I can see FaceId popup when i call storage.read() at first time. But i call storage.read() at second times it auto return value from storage without FaceId verification.

So can i force FaceId verification when i call storage.read()

skyphantomhz avatar Jul 04 '22 09:07 skyphantomhz

I think my changes in https://github.com/authpass/biometric_storage/pull/70 might resolve this issue but I don't have a device with FaceId support to test it myself.

I've only tested with authenticationValidityDurationSeconds set to > 0 but if it doesn't work for <= 0, I suspect that setting that to 1 second would be a reasonable workaround for all realistic use-cases.

For the record, with the current package version you would most likely find that if you wait for 10 minutes before calling storage.read(), you'll be prompted again. This is because the LAContext is being reused indefinitely but there appears to be a hidden fixed limit of 10 minutes for the validity of the context before iOS decides it needs to re-authenticate. That limit may vary across different iOS versions but definitely is the case in iOS 12 with TouchId.

luckyrat avatar Jul 04 '22 17:07 luckyrat

Thanks for your response.

I'm looking forward new version.

skyphantomhz avatar Jul 05 '22 08:07 skyphantomhz

@skyphantomhz same.

barilki avatar Jul 28 '22 13:07 barilki

I am facing the same issue.Anyone got solution for this?

vikashrathore081 avatar Dec 06 '22 09:12 vikashrathore081

Facing the same issue here, it works perfectly on android but it has a weird behavior in the iOS it's been a long time since this issue is opened and yet, no solution??

abdallah-odeh avatar Jan 23 '23 08:01 abdallah-odeh

Is it solved ?

nainamaharjan avatar May 08 '23 11:05 nainamaharjan