Comments (13)
I’m sorry, I’m not sure I fully understand what the issue is.
from applesimulatorutils.
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.
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.
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.
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.
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.
If you use the simulator menu, what behavior do you see?
from applesimulatorutils.
@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.
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.
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.
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.
Touch ID also works:
Screen Recording 2019-10-31 at 21.44.17.mov.zip
from applesimulatorutils.
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)
- No permission type for accessing clipboard for iOS 16.0
- applesimutils binary has not been found in your PATH HOT 1
- Unable to change permissions for a cloned simulator device started by Xcodebuild Test. HOT 4
- Error para conectar con el servidor
- iOS 16: Set health permissions isn't working (error) HOT 6
- new release (0.9.8) has SHA256 mismatch in brew? HOT 3
- Simulator is rebooted when I use "notifications": "YES" HOT 1
- Set location permission not working as expected HOT 24
- Xcode 15 > Unable to run commands HOT 14
- Can't grant permissions on iOS 17 HOT 7
- homebrew: upgrade to 0.9.10 fails due to SHA mismatch HOT 2
- Applesimutils --list doesn't find iPhone devices HOT 8
- Please add Paste from Other apps Permission
- Shorter mode for --list
- setPermissions for health get error: Unknown error calling sqlite3_step (19: NOT NULL constraint failed: authorization.sync_identity) rs
- Fix AppleSimulatorUtils version release script. HOT 1
- On Detox 19.5.7 + XCode 13.3 AppleSimUtils is timing out on CircleCI
- Support for Local Network Usage permission HOT 2
- `0.9.6` was released to homebrew with incorrect checksum HOT 15
- `0.9.7` Brew install checksum mismatch HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from applesimulatorutils.