[AC-1396] ti.touch module crash when callback shhould open a window
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Cannot Reproduce |
Resolution Date | 2016-01-07T05:39:02.000+0000 |
Affected Version/s | Appcelerator Studio 4.5.0 |
Fix Version/s | n/a |
Components | Appcelerator Modules |
Labels | touchid |
Reporter | Michael Bahl |
Assignee | Mostafizur Rahman |
Created | 2015-12-08T15:48:58.000+0000 |
Updated | 2016-03-08T07:37:49.000+0000 |
Description
var TiTouchId = require('ti.touchId');
TiTouchId.authenticate({
reason: L('txt_to_proceed_put_finger_on_sensor'),
callback: function(e) {
if (!e.success) {
Ti.API.info('Message: ' + e.error + '\nCode: ' + e.code);
switch(e.code) {
case TiTouchId.ERROR_AUTHENTICATION_FAILED:Ti.API.info('Error code is TiTouchId.ERROR_AUTHENTICATION_FAILED'); break;
case TiTouchId.ERROR_USER_CANCEL: Ti.API.info('Error code is TiTouchId.ERROR_USER_CANCEL'); break;
case TiTouchId.ERROR_USER_FALLBACK: Ti.API.info('Error code is TiTouchId.ERROR_USER_FALLBACK'); break;
case TiTouchId.ERROR_SYSTEM_CANCEL: Ti.API.info('Error code is TiTouchId.ERROR_SYSTEM_CANCEL'); break;
case TiTouchId.ERROR_PASSCODE_NOT_SET: Ti.API.info('Error code is TiTouchId.ERROR_PASSCODE_NOT_SET'); break;
case TiTouchId.ERROR_TOUCH_ID_NOT_AVAILABLE: Ti.API.info('Error code is TiTouchId.ERROR_TOUCH_ID_NOT_AVAILABLE'); break;
case TiTouchId.ERROR_TOUCH_ID_NOT_ENROLLED: Ti.API.info('Error code is TiTouchId.ERROR_TOUCH_ID_NOT_ENROLLED'); break;
default: Ti.API.info('Error code is unknown'); break;
}
} else {
Ti.API.info("Touch id success");
//Fails
Alloy.createController("mycontroller").getView().open();
/* Works
setTimeout(function(){ //crashed without settimeout (5.1.1GA)
Alloy.createController("mycontroller").getView().open();
},1);
*/
}
}
});
[ERROR] Script Error {
[ERROR] column = 14;
[ERROR] line = 421;
[ERROR] message = "null is not an object (evaluating 'proxy.id')";
[ERROR] sourceURL = "file:///var/mobile/Containers/Bundle/Application/F4DDBD59-6A05-4D2
Hello, We have tested *"ti.touch"* module on following environment. It's working as expected and we didn't reproduce the above error. *Testing Environment:* Titanium SDK: 5.1.1.GA Appcelerator Command-Line Interface, version 5.1.0 Mac OS X: version 10.11.1 iOS device: Simulator iPad Pro(v9.1), iPad mini (v8.1.1) ti.touchId module version: iOS-1.2.1 [Get from Here](https://github.com/appcelerator-modules/ti.touchid/releases) Thanks.