设备锁定时的指纹 API 行为

Fingerprint API behavior when device is locked

我有一个应用程序,其服务可以在设备锁定时启动,并且此服务正在启动我的应用程序的 activity(即使设备已锁定)。在此 activity 中,我使用 Google 指纹 API 来识别用户。我用 Android 6.0.1(Samsung Galaxy S6 和 Google LG Nexus 5X)在两台设备上进行了测试,结果不同:

我的问题是:

相同的 service/activity/authentication 工作流程在两台设备都解锁时以及应用程序处于 background/foreground.

时完美运行

谢谢!

在调用身份验证方法之前引入 1 秒的延迟(handler.postDelayed),对我有用