Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-24368

Ti.TouchID module accessibilityMode constants not working as expected

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 6.2.0
    • Component/s: iOS
    • Environment:

      Ti.TouchID module v.2.0.1
      Ti.SDK 6.0.1 GA
      Latest studio,
      Latest CLI,
      iPhone 7 os.v 10.2

      Description

      I believe I just found some irregularities with this module. I've tried using it this way:

      var keychainItem = TouchID.createKeychainItem({
          identifier: "mypassword",
          accessibilityMode: TouchID.ACCESSIBLE_AFTER_FIRST_UNLOCK,
      });
      	
      keychainItem.addEventListener("save", function(e) {
          if (!e.success) {
              alert("Error saving to the keychain: " + e.error);
              return;
          }
      	
          alert("Successfully saved!" + e);
      });
      	
      btnSave.addEventListener("click", function() {
          keychainItem.save("s3cr3t_p4$$w0rd");
      });
      

      When I try to read the value back I am consistently being asked for password. Same goes for ACCESSIBLE_ALWAYS, ACCESSIBLE_WHEN_UNLOCKED, ACCESSIBLE_WHEN_UNLOCKED_THIS_DEVICE_ONLY, ACCESSIBLE_ALWAYS_THIS_DEVICE_ONLY.
      According to https://developer.apple.com/reference/security/keychain_services/keychain_item_accessibility_constants I should not be asked the password... Tested with TouchID module v 2.1.0 Ti.SDK 6.0.1 GA on iPhone 7 os 10.2.
      Please reopen the ticket.

        Attachments

          Activity

            People

            • Assignee:
              hknoechel Hans Knöchel
              Reporter:
              nradaev Nikita Radaev
              Reviewer:
              Vijay Singh
              Tester:
              Eric Wieber
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-10464
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code