Skip to content

Commit

Permalink
Telerik-Verified-Plugins#1 - iOS9 sim supports TouchID
Browse files Browse the repository at this point in the history
  • Loading branch information
EddyVerbruggen committed Oct 1, 2015
1 parent 55e8284 commit d16c575
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 14 deletions.
10 changes: 2 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ by [Eddy Verbruggen](http://twitter.com/eddyverbruggen)
3. [Automatically (CLI / Plugman)](#automatically-cli--plugman)
3. [Manually](#manually)
4. [Usage](#4-usage)
5. [Quircks](#5-quircks)
6. [License](#6-license)
5. [License](#5-license)

## 1. Description

Expand Down Expand Up @@ -95,12 +94,7 @@ You can copy-paste these lines of code for a quick test:
<button onclick="window.plugins.touchid.verifyFingerprint('Scan your fingerprint please', function(msg) {alert('ok: ' + msg)}, function(msg) {alert('not ok: ' + JSON.stringify(msg))})">Scan fingerprint</button>
```

## 5. Quircks

### The iOS Simulator
When testing the plugin in XCode, use a real device (not the simulator) because it has no fingerprint scanner. Duh.

## 6. License
## 5. License

[The MIT License (MIT)](http://www.opensource.org/licenses/mit-license.html)

Expand Down
2 changes: 1 addition & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
id="nl.x-services.plugins.touchid"
version="2.0.0">
version="2.0.1">

<name>Touch ID</name>

Expand Down
5 changes: 0 additions & 5 deletions src/ios/TouchID.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ @implementation TouchID

- (void) isAvailable:(CDVInvokedUrlCommand*)command; {

if (TARGET_IPHONE_SIMULATOR) {
[self.commandDelegate sendPluginResult:[CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR messageAsString:@"The simulator is not supported"] callbackId:command.callbackId];
return;
}

if (NSClassFromString(@"LAContext") == NULL) {
[self.commandDelegate sendPluginResult:[CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR] callbackId:command.callbackId];
return;
Expand Down

0 comments on commit d16c575

Please sign in to comment.