react-native-fingerprint-scanner icon indicating copy to clipboard operation
react-native-fingerprint-scanner copied to clipboard

Use LAPolicyDeviceOwnerAuthentication when fallback is enabled

Open azgron opened this issue 6 years ago • 14 comments

'Enter Password' doesn't working. It because the policy should be LAPolicyDeviceOwnerAuthentication when fallback is enabled.

Screen Shot 2019-05-19 at 9 55 33

azgron avatar May 19 '19 10:05 azgron

Thanks @azgron - to clarify, what's the behavior you're expecting to see when "Enter Password" is used?

To clarify - the fallback doesn't bring up the system fallback (e.g. password), but the app's fallback.

phillbaker avatar May 20 '19 02:05 phillbaker

@phillbaker Hah, I didn't understand it. I thought it should fallback to device passcode :)

Do you think the passcode could be useful for the library?

Simulator Screen Shot - iPhone 8 - 2019-05-20 at 08 03 43

azgron avatar May 20 '19 05:05 azgron

Do you think the passcode could be useful for the library?

I don't understand the question - do you mean this PR? Can you explain a bit?

phillbaker avatar May 20 '19 13:05 phillbaker

Yes. This pull request was because in the beginning I thought that the functionality of clicking 'Enter Password' button, should present the 'ios passcode screen' (system fallback): Simulator Screen Shot - iPhone 8 - 2019-05-20 at 08 03 43

Now, I do understand that the application should implement it's own functionality of fallback.

To clarify - the fallback doesn't bring up the system fallback (e.g. password), but the app's fallback.

Do you think this library should support system fallback as default? If yes, How do you think it should be implemented?

azgron avatar May 20 '19 16:05 azgron

Do you think this library should support system fallback as default? If yes, How do you think it should be implemented?

As I understand it, the system password is not available for use by applications - it's only available to the device itself. Are there any docs for exposing the system password for use in apps?

phillbaker avatar May 21 '19 02:05 phillbaker

@phillbaker

My changes in this pull request do this functionality (Read about LAPolicyDeviceOwnerAuthentication vs LAPolicyDeviceOwnerAuthenticationWithBiometrics)

It brings the passcode device screen.

Please check my changes and run it locally (Try to press ‘Enter passcode’).

I have attached a gif: IMG_7107 TRIM

azgron avatar May 22 '19 04:05 azgron

@phillbaker

What do you think? Would you like to change the way I implemented the system fallback?

azgron avatar May 26 '19 06:05 azgron

A few thoughts:

  • looks like this is only available post iOS 9, need to double check what iOS versions react native still supports
  • is this cross compatible with Android?

On Sun, May 26, 2019 at 2:59 AM azgron [email protected] wrote:

@phillbaker https://github.com/phillbaker

What do you think? Would you like to change the way I implemented the system fallback?

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/hieuvp/react-native-fingerprint-scanner/pull/82?email_source=notifications&email_token=AAAXCKMYVNLHRXWSEWWPLYLPXIYM5A5CNFSM4HN4FEY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWH7VHA#issuecomment-495975068, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAXCKKGK2MOAZU4OSKXJ33PXIYM5ANCNFSM4HN4FEYQ .

phillbaker avatar May 27 '19 02:05 phillbaker

will this pr be merged? i really like the approach

MarianBe avatar Jul 04 '19 08:07 MarianBe

@azgron I really want to implement device password fallback in my app. Thanks much for this PR. Is this pr be merged?

ReemaVinodGangdev avatar Jul 06 '20 11:07 ReemaVinodGangdev

There were questions above @ReemaVinodGangdev

  • only supports iOS10+, what does react-native support? iOS moved to 10+ - https://github.com/facebook/react-native/blob/master/template/ios/Podfile#L4 - as of react-native 0.63 which is release candidate now but will release soon. It seems this may need IFDEFs for iOS9 so it is safe on them as the old react-native's should be supported for more than "the upcoming release candidate has it"

  • is it cross-compatible with android - no idea on that one, and @azgron did not answer

If you @ReemaVinodGangdev were at least able to pull the PR and test it to report success that would probably also help the process. Usually PRs need a few people to collaborate in order to review, pull+test+report-success etc, so if you need it, help push it forward and that's how it gets done :-)

mikehardy avatar Jul 06 '20 15:07 mikehardy

is it cross-compatible with android - no idea on that one, and @azgron did not answer

iOS only. Given that only 1 file was modified.

If you @ReemaVinodGangdev were at least able to pull the PR and test it to report success that would probably also help the process. Usually PRs need a few people to collaborate in order to review, pull+test+report-success etc, so if you need it, help push it forward and that's how it gets done :-)

I tested it. Worked great.

marcosrdz avatar Sep 08 '20 04:09 marcosrdz

please merge & update. worked for me

rayansys avatar Aug 03 '21 05:08 rayansys

Please Merge this PR.

Vatsal4GVM avatar Jul 27 '23 11:07 Vatsal4GVM