Flutter local_auth fingerprint authentication without dialog - dart

I'm trying to implement fingerprint protection for an app using local_auth in Flutter. Here's the docs for local_auth.
I'm trying to implement the local_auth without any dialogs in the process. The docs do point to 'useErrorDialogs = false' to not use the default dialogs.
What I want to implement is a simple page wherein I can run the auth related stuff at initState() and be able to send the users to the next screen if it's valid or show an error message in the same screen without any popups if the auth was a failure.
Thank you.

Not possible at the moment. It is an open issue on flutter's github:
https://github.com/flutter/flutter/issues/30601

Related

Call directly without extra dialog in iOS using Ionic 4

I'm trying to call a number from my app, but I want to do that without having to click on the modal that appears with "Cancel" and "Call" after I clicked my button in the app. Just click the button in the app and go straight to the call. Can I do that?
I already installed the native plugin [call-number] and the ionic package. It's working, it's making the call, It's just that I would like to make the call without that extra step.
Not sure if thats possible. Plugins provide communication between the ionic layer and the native layer so you are usually limited by the options the plugin gives you.
According to the documentation all you can do is bypass the choice of the calling app.
https://github.com/Rohfosho/CordovaCallNumberPlugin
You can't bypass that dialog. It is provided by iOS as an extra layer of protection for the user. It stops malicious apps initiating calls that may incur costs without user acknowledgement.

Questions About UWP Permission Request Dialog UI

I have a UWP app with a WebView that may browse to webpages that request special permissions like the microphone, camera, or geolocation. For instance, I login to web.skype.com, it will request microphone and camera access. I added these capabilities to the appxmanifest so that it Windows prompts for permission. The problem with this is that I have no control over the UI of the popup that is displayed. My users may have special access needs (e.g. using an eye tracker) and I want to ensure they do not get stuck if one of these dialogs appears.
1) Is there any event or notification that Windows is about to show the dialog? I thought WebView.PermissionRequested was supposed to do this, but I am seeing that it is not invoked when I go to web.skype.com for microphone/camera permission, nor for weather.com for geolocation permission. Is there a different event at the app level that I can use for this? That way I can at least warn the user that a non-accessible dialog is about to appear so that they can prepare for it (e.g. ask for help).
Edit: For instance, app.xaml.cs has some virtual methods like OnFileOpenPickerActivated. I need something like OnPermissionRequested.
2) Is it possible to customize this UI in any way? Preferably I could replace the whole thing with my view. Next best would be to change the text to something like "Let web.skype.com access your microphone?" rather than "Let access your microphone?"
My question was answered in the msdn forums, quoted here:
Hi J.Nelson Tdx
Is there any event or notification that Windows is about to show the dialog?
The dialog will appear only when you need to use the related APIs. There is no such event that could will be fired before the permission dialog shows. You could submit a feature request in the User Voice.
Is it possible to customize this UI in any way?
Currently, it is not possible to customize the Warning Alert. This is by design.
Best regards,
Roy

Modify Touch Id Plugin Default Authentication Popup (IOS)

I used touch Id plugin in my IOS Application by following below URL:
https://www.ibm.com/developerworks/community/blogs/worklightsmobileplayground/entry/touchid_authentication_with_worklight?lang=en
I implemented plugin properly and it is working. I want to change in the plugin code such that the Touch ID default popup should be removed but the touch authentication should work.
Please suggest on this.
In my opinion you are attempting to subvert the way TouchID works, and that is a big no-no. You should keep the TouchID UI as it is since that is part of the Touch ID experience Apple decided on. And I don't think you can change that anyway.

Integrating Password Manager Into iPhone App

I've noticed a few iPhone apps have started to allow you to use your password manager to sign in. Slack is an example of this:
It looks like there's a link that's triggering a partial version of the share toolbar in Safari which lets you access your favourite password manager's widget. That's all I've been able to figure out so far though.
My question is, how have they got this functionality into their app? I'm primarily developing things using React Native, but if it needs a custom component then that's not a problem.
This is now supported natively by iOS 12+ (and by react-native 0.60+) without the need for an extension.
Documentation for enabling it on iOS is located here on Apple's site.
TLDR is to set the UITextContentType values of .username and .password for your inputs and, optionally, add an associated domain entitlement so your app can share passwords with your website.
The prop for enabling it in React Native is documented here. TLDR there is to provide an autoCompleteType on your TextInput component. The two OSes should handle that properly, though again you will have to add an associated domain if you want to share passwords between your website and app.
You can take a look at generic-password-app-extension which gives you access to password managers. It's provided by the creators of Last Password and 1Password.
You'll obviously need to wrap it with a native component so you can trigger it from your JS code.

React-native detect click on WebView

Is there solution to detect click anywhere on reacts-native WebView? Tried to put it inside TouchableOpacity but I'm getting errors. Is there some work around it, to detect click?
This will be a great feature if react native team can add it in the future. Currently this is still an open issue https://github.com/facebook/react-native/issues/586
Somebody provide a suggestion at there you can give it a try. But it is better wait for facebook team to provide a more elegant solution.
Any events taking place inside a webview is sandboxed from the rest of the application. This is by design of this native component, not a limitation of React Native.
What you will need to do is to manually bubble up the event that you are interested in from the webview to your app yourself.
You can currently do so by using react-native-webview-bridge. You set a global listener to the DOM event that you are interested in. Once you catch it, you send it to your application via the bridge.

Resources