Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25293] Android App getting focused from background after supplying fingerprint.

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionInvalid
Resolution Date2017-10-05T23:05:31.000+0000
Affected Version/sRelease 6.1.2
Fix Version/sn/a
ComponentsAndroid
Labelstouchid
Reporter Ricardo Ramirez
AssigneeGary Mathews
Created2017-09-15T17:35:03.000+0000
Updated2017-10-05T23:05:31.000+0000

Description

H5. Issue Description In our application we are using finger print based authentication for Android, and we are using TouchId module version 2.2.0. When we keep the app in background, the app is still waiting for finger print to be supplied. If you supply finger print our app is getting focused even if we are using any other app at that time. it would be helpful, if Touch Id module is returning a message when app is pushed to background.

Steps to Reproduce

To reproduce the issue, 1 Run the attached sample app here https://drive.google.com/open?id=0BwTWo-c2a0b9OVhlWEdvc0Q2SEU 2 click on “click to get touchID view” label 3 Keep the app in background by pressing Home 4 Now provide the invalid/valid finger print, app will get focused.

Comments

  1. Ricardo Ramirez 2017-09-18

    [~emerriman] do you have any update ?
  2. Gary Mathews 2017-09-19

    [~rramirez] This isn't an issue with ti.touchid, the sample app provided creates a new window when a fingerprint is authenticated. That window will be brought into the foreground. I'm not sure what their expected behavior should be? You can use the blur event to detect if the window has entered a paused state.
       var win = Ti.UI.createWindow(),
           isBackground = false;
       
       win.addEventListener('focus', function(e) {
           isBackground = false;
       });
       win.addEventListener('blur', function(e) {
           isBackground = true;
       });
       
       win.open();
       

JSON Source