Using LocalAuthentication from Siri Intents extension

Hello,


According to Session 228 of WWDC 2017 "Making Great SiriKit Experiences" I should be able to authenticate a user with Touch ID from within a Siri Extension.


I've been battling this for a while, but when I call -[LAContext evaluatePolicy:localizedReason:reply:] from withing the handle method I always get the same error on the callback:


"Error Domain=com.apple.LocalAuthentication Code=-1004 "User interaction is required." UserInfo={NSLocalizedDescription=User interaction is required.}"


I'm pretty much doing the same thing presented in that session…


What am I missing?

Replies

I'm having the same issue with iOS 12 only. iOS 11 works fine.

https://forums.developer.apple.com/thread/107463


😟

The latest beta (beta 8) has fixed this.

Hello


iOS 12 debug mode Siri kit works without any problem .

But in release mode (run using cable) come this error as

"Error Domain=com.apple.LocalAuthentication Code=-1004 "User interaction is required." UserInfo={NSLocalizedDescription=User interaction is required.}"


in iOS 12 When create release ipa file and install , siri says "sorry there was a problem with the app"


But iOS 11 install the ipa file, that works really fine.


Can I please know how to fix this?