SFSpeechRecognizer authorization key in Info.plist - ios10

What is key name, that I need to add in Info.plist to display speech recognition authorization request?

NSMicrophoneUsageDescription - for microphone usage authorization.
NSSpeechRecognitionUsageDescription - for asking speech recognition authorization.
Note that speech recognition as any microphone usage is not available in Simulator.

Related

How can I integrate Touch ID and Face ID in iOS(swift 5) app

I have to implement biometric authentication, I am using many demos but none the demo is complete, Can any one suggest me the demo or having the
complete demo by which i can register the user biometric and authenticate only that particular user.
Thanks
You can add multiple Touch IDs on your device and it can be used in your app, but it will work as a single user even if the fingerprints are different.
Apple says the model of your face never leaves your iPhone. It does not transmit it over any network or store it in the cloud. Like your digital Touch ID fingerprint, your Face ID data is stored specifically in something called the iPhone's secure enclave.
For multiple user authentication, you have to store the fingerprints on your particular app. But as per my research, Apple didn't give you an access to the Secure Enclave.
https://www.quora.com/Can-the-iPhone-fingerprint-sensor-be-used-to-create-a-fingerprint-picture
You can refer the documentation from Apple to integrate Face ID and Touch ID with your app for a particular user.
https://developer.apple.com/documentation/localauthentication/logging_a_user_into_your_app_with_face_id_or_touch_id

Register user biometrinc finger print in flutter

Can we register a biometric fingerprint on the phone in flutter. I search about that on google and found loca_auth flutter plugin but it can only get the list of biometric fingerprints and authenticate fingerprint but what I need is to register biometric fingerprints in the device.
Third party apps do not have the capacity to register/add biometric materials to devices, no matter what platform you are using -- flutter, etc. Here is how the flow works in general.
User gets a new phone (purchased, gifted, found, etc.), a phone that supports biometric authentication.
User goes to Settings and enrolls a biometric template (e.g. enrolls their fingerprint as a way of unlocking the device). In general, this is the only way to register/enroll a fingerprint/face/iris/etc.
Your app wants users to authenticate using biometrics and so implements something similar to what's described here or here.
Now inside your app, when the user clicks to authenticate(), your app never actually sees any biometric materials. Biometric materials are kept in a secure location so that third party apps cannot access them. What your app gets is acknowledgement from the Framework that the fingerprint/face/iris trying to authenticate into your app is indeed enrolled on the device. Checkout the blog posts I mentioned for more details.
You can do this. Just take a look at this:
Fingerprint Authentication in Flutter
Accordingly you also need to set permissions in android manifest file too.

Voice Biometric in google assistance

For one of project, to protect user PHI information we want to implement voice biometric solution in Google assistance app. Need your guidance in below:
Can we add voice biometric for the invocation phrase. I know, that google does voice match, but we want to implement voice biometric authentication, so that only authorized user can access specific skills. How we can do it, or access audio stream during invocation and control.
How we can get audio stream once the assistant app has been invoked. We want to add passive voice biometric in our Google Assistant app.
Please let me know if any details available. Thank you.
Note: Above information required for channel Google Home or Google Assistant device.
For privacy and security reasons, at no point can you get access to the the voice stream or a recording of the users voice when using Actions on Google or through Google Home device.
If you were building your own device and using the Assistant SDK, you have access to the stream (since you have access to the hardware directly).
I'm not sure what you mean by "voice biometric" vs "voice match", but voice matching provides access to account linking so you can enforce access from only specific users.

Set a password of voice before opening any app by google assitant

i'm currently working on an app like a vault that prevents you to open that app but only by your voice or fingerprint on the google assistant. But my question is that may be with fingerprint i can but by voice how?? cause i need to store the voice somewhere and then later compare it.. Please help me
For starters - you can't check a user's voice on the Assistant. Google doesn't send you the audio of what the user has said. All you get is a text transcript.
However... what you want is already what is implemented by Google. Users who have setup voice recognition on their Google Home devices will be recognized by the Assistant when they say "ok google" or "hey google" and you will receive a unique userID for those users. You'll get the same ID the next time they try talking to you. If the Google Home doesn't recognize the voice, it won't provide the ID.
There are caveats with the voice recognition, and voices can be recorded and played back so this isn't a foolproof security method, but from what you have described, it sounds like Google already does what you want.

adding bluetooth or other access allow in setting for your app

My app uses Bluetooth and I want to show the access permission on app setting. how can I add Bluetooth or other access permission, here based on my requirement? like below Instagram
In p.list file add Bluetooth Peripheral Usage Description
<key>NSBluetoothPeripheralUsageDescription</key>
<string>$(PRODUCT_NAME) Bluetooth Peripheral use</string>
Now Bluetooth appears in Settings