From 684a240bcf5500b490d29f7777fc2fc0584abe10 Mon Sep 17 00:00:00 2001 From: Gabriel Masclef Date: Tue, 14 Nov 2017 11:34:50 -0300 Subject: [PATCH] Fix: check for cordova device before init fingerprint --- src/providers/touchid/touchid.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/providers/touchid/touchid.ts b/src/providers/touchid/touchid.ts index cc63c2e5f..4e46b9560 100644 --- a/src/providers/touchid/touchid.ts +++ b/src/providers/touchid/touchid.ts @@ -18,8 +18,10 @@ export class TouchIdProvider { ) { } init() { - if (this.platform.isAndroid) this.checkAndroid(); - if (this.platform.isIOS) this.checkIOS(); + if (this.platform.isCordova) { + if (this.platform.isAndroid) this.checkAndroid(); + if (this.platform.isIOS) this.checkIOS(); + } } checkIOS() {