Today extension and fingerprint/passcode for action

Hi,


I want to put a button and a label in the Today extension that once the user will push the button it will give him some passcode.

But, is there an option to do it only after the system requests a fingerprint/passcode from the user? (without opening the app).

So the desire flow is: push the button -> ask for Touch ID -> Touch ID ok -> put passcode on label.

Is this feasible? I think you can do it in SiriKit, but not sure regarding Today extension.


Thanks.

Replies

There is not a way to do this with the iOS SDK at the moment. What you can do however is just add a message saying "Unlock your iPhone to see the passcode". You can see this with the Notes widget in iOS 10, which says "Unlock your device to see your notes.", prompting the user to do it.