Giter Club home page Giter Club logo

Comments (13)

LeoNatan avatar LeoNatan commented on June 2, 2024

I’m sorry, I’m not sure I fully understand what the issue is.

from applesimulatorutils.

blairroebuck avatar blairroebuck commented on June 2, 2024

I’m sorry, I’m not sure I fully understand what the issue is.

It is indeed difficult to explain and I sadly cant share a photo or video because of the application under test.

Essentially when opening the application from the springboard, I'm immediately prompted with a biometric challenge. The util correctly identifies this, and when passing it the 'YES' value, it unlocks the app.

When I pass it the 'NO' value, the real world experience we expect is that you're prompted by our application to 'Try Again' or 'cancel' the challenge.

The util at current is sending the 'NO' but I don't get a chance to interact with our 'Try Again' prompt on the screen, as I'm just returned back to our manual log in screen.

from applesimulatorutils.

LeoNatan avatar LeoNatan commented on June 2, 2024

I think you are not using the tool correctly. applesimutils --setPermissions faceid=YES gives the Face ID permission to your app (NO means you app has no permission to ask for Face ID prompt). To mach or fail a mach, use the --matchFace and --unmatchFace APIs.

from applesimulatorutils.

blairroebuck avatar blairroebuck commented on June 2, 2024

I think you are not using the tool correctly. applesimutils --setPermissions faceid=YES gives the Face ID permission to your app (NO means you app has no permission to ask for Face ID prompt). To mach or fail a mach, use the --matchFace and --unmatchFace APIs.

Sorry, I did a terrible job of most of the comments, I'm working on a few different PR's and got muddled.

I'm using --matchface and --unmatchface parameters. The above described is the behaviour I'm seeing when using --unmatchface.

Essentially, when you manually fail a biometric challenge, your prompted with the default OS 'Try Face ID again' or 'Cancel'.

I want to be able to manually click on the 'Try Face ID Again' button, but currently the util using the --unmatch face is closing that popup.

from applesimulatorutils.

LeoNatan avatar LeoNatan commented on June 2, 2024

OK, I think this is not possible. The entire Touch ID/Face ID prompt is presented by a different process, and the only notification sent to the app is in the cases of success and failure of the entire process.

Why are you testing for that? The entire biometric authentication process is off-process and is Apple. You should not be testing if Apple is behaving correctly, only that your app behaves correctly if the user authenticates or fails to do so.

from applesimulatorutils.

blairroebuck avatar blairroebuck commented on June 2, 2024

Thanks for the response @LeoNatan , I'm glad I managed to explain it a bit clearer (sorry again).

I'm trying to confirm that after X failed biometric attempt, our app displays the correct message that the user is now unable to authenticate via faceID, and that they now have to log in manually.

The current behaviour of the util is that it dismisses the FaceID prompt, but closes the whole prompt window, so I cant get to the Try again button, so I cant test the max retires functionality.

from applesimulatorutils.

LeoNatan avatar LeoNatan commented on June 2, 2024

If you use the simulator menu, what behavior do you see?

from applesimulatorutils.

blairroebuck avatar blairroebuck commented on June 2, 2024

@LeoNatan when using the simulator menu, it behaves as expected, after clicking 'Non-matching Face'. it fails the Face ID and leaves me looking at the 'Face not recognised - try again' prompt.

Using it via the util command effectively fails the Face ID challenge, then clicks cancel on the prompt.

from applesimulatorutils.

blairroebuck avatar blairroebuck commented on June 2, 2024

Is there any update on this ? having done some more digging, were only using the native iOS biometric prompt.

You can open any application that uses Face ID on your phone, wait to be prompted and use someone else face to fail the challenge, you are then prompted with the ' Face not recognised - try again' prompt.

When using the util, you don't see this prompt, it's just dismissed. There is no option to use the 'try again' button.

from applesimulatorutils.

LeoNatan avatar LeoNatan commented on June 2, 2024

I haven’t looked yet, unfortunately. If you’d like to assist in debugging, I’d appreciate it. The simulator process throws system notifications when the menu items are selected. Inspect those and compare to the notifications sent from applesimutils (you can find them in the code).

from applesimulatorutils.

LeoNatan avatar LeoNatan commented on June 2, 2024

I can't reproduce the problem. When using unmatchFace, the system correctly displays the "Try again" message. It seems this prompt is broken, because the "Try Again" button doesn't work.

Screen Recording 2019-10-31 at 21.26.34.mov.zip

from applesimulatorutils.

LeoNatan avatar LeoNatan commented on June 2, 2024

Touch ID also works:

Screen Recording 2019-10-31 at 21.44.17.mov.zip

from applesimulatorutils.

LeoNatan avatar LeoNatan commented on June 2, 2024

There is no reason why it shouldn't work, because the notification sent by selecting the menu items are the same as the ones sent from applesimutils.

from applesimulatorutils.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.