0
当您将Firebase作为后端并使用Ionic 2时,您可以使用Touch ID吗? 这是我现在的代码。Touch ID与Firebase和Ionic 2? #askfirebase
platform.ready().then(() => {
touchid.checkSupport(() => {
touchid.authenticate((result) => {
ngZone.run(() => {
this.navCtrl.setRoot(TabsPage);
});
}, (error) => {
alertCtrl.create({
title: "Attention!",
subTitle: error,
buttons: ["Close"]
});
}, "Please Authenticate");
}, (error) => {
alertCtrl.create({
title: "Attention!",
subTitle: "Touch ID is not supported",
buttons: ["Close"]
});
});
});
Touch Id功能与后端没有任何关系。您可以使用Ionic 2. –