Detect when there is a biometric change in local_auth Flutter - flutter

Using loca_auth in Flutter, is it possible to detect when a fingerprint is added/deleted to the device?

You can't detect if a new fingerprint is added or deleted because that would violate the App and PlayStore Rules.

For some reason, this goes out of scope of "local_auth", which is why you can check the change of biometrics only on your own or using third-party packages.
I found did_change_authlocal package - it can check the change of biometrics on Android and iOS.

Related

Is it possible to create a flutter app to lock screen/ Turn on and off the screen in 2022?

flutter native dependencies
I need a way to access native dependencies
you can use the flutter_screen_lock, which provides the ability to lock the screen on ios and android. Biometric authentication can be used in addition to passcode.

How to add Face authentication in flutter for android devices?

I want to add the face authentication for andorid but could not find one. No packages are there and not event the solution. Any ideas?
Please try it:
How to do face id authentication for both android and iOS in flutter
Youtube:- https://youtu.be/M6Puy4EBrz4

How to do Remote Updates On Flutter

I have a flutter chat app. Companies like Whatsapp & Facebook update their app without forcing users to uninstall or manually uploading the APK again to google play. Is this possible with futter i tried using firebase remote config but it didn't work as i expected ( Changing UI on the go ). Any answer will be appreciated.
WhatsApp and Facebook use React Native with CodePush (if I'm not wrong).
You can't update an app without forcing a user somehow to update the app from a store with Flutter as it compiles to binary and React Native – not
There are multiple things you can do and it is based on what you want to achieve. [From your question your goal is not clear.]
Change Something based on configuration.
If you have configurations defined then you can use Firebase remote config to pass on value to devices and devices should behave according to value that you have set on Firebase Remote config.
Limitation of this approach:
In this approach, don't expect your newly updated code will into existing app. Above approach works, if code is already there in the compiled binary and you just want to switch path.
Binary version update:
If you want to force new app version download then it would require a different approach,
Android: Yes it is possible.
iOS: In-App update is not possible. You can show prompt to user by saying that new version is available and redirect user to new version on Store.
If user has enabled auto-download in iPhone settings then there are chances that app version updated to new version when user come to app.
For implementation look at here: Binary version update
Flutter now has unofficial support for code push using Chimera Flutter Code Push.
Here is a full tutorial

What will local_auth choose by default if my device support face and fingerprint auth in flutter?

Currently, in my application, I have to provide biometric authentication for sign in but local says there is a biometric type finger only available.
I am using Samsung m31 and in Kotak Mahindra bank application they allow me to use a finger as well as face option.
Why local_auth not giving face option?
And what will it choose by default if any device has both options face and finger?
You can get the available biometric check for the mobile using the following code
List<BiometricType> availableBiometrics = await auth.getAvailableBiometrics();
Android local_auth uses BiometricPrompt and it does not support Face unlock in Android 9. You can read more about it here
You can use sensitiveTransaction parameter to set the sensitivity of the transaction which handles setConfirmationRequired() in Android to enable Face lock for the supported device. You can read about it here
Kotak Bank app is a native application that gives android SDK features directly to access all available biometric locks but in the case of Flutter, developers are dependent on the implementation of the plugin. You can probably enhance the implementation as per your requirement.

How to update flutter app programmatically in Play/App store?

There is an upgrader (mostly for iOS) and in_app_update plugin (for android). I try to implement them both and had a difficulty to do so. I post and issues in both plugin but I got no response. So if anyone use this 2 plugin successfully please can you share step-by-step approach details.
Basically How to update flutter app programmatically in Google Play Store (Android) & App Store (iOS)?
Thanks
I have also tried in_app_update 1.1.11 and upgrader 2.4.0.
For upgrader:
I also don't know how to use Appcast, so I use the iTune api to get my app version in the App Store then pop up the install dialog. However, the iTune api is so slow to update. Therefore I just use Firebase remote config to set the version once the app is published.
For in_app_update:
I also don't know how to use it. I have add the Play Core in app/build.gradle
implementation 'com.google.android.play:core:1.8.0'
Nothing pop up even I downloaded the old version from the Play Store and then publish a new version.
Update:
I found that in_app_update actually work just by following its example code. I don't have any update pop up before because my Android device is Mi 9, seems there is some bug in it. The update pop up can be seen in the release version of other brand of devices
Since I really want to use the Play Store in-app-update, so for android I did use the remote config... waiting for someone to have the guides