Title: [@nativescript/biometrics] Issue with verifyBiometric on iOS 18.3.1: Unable to Retrieve Stored Secret When Using pinFallback · Issue #616 · NativeScript/plugins · GitHub
Open Graph Title: [@nativescript/biometrics] Issue with verifyBiometric on iOS 18.3.1: Unable to Retrieve Stored Secret When Using pinFallback · Issue #616 · NativeScript/plugins
X Title: [@nativescript/biometrics] Issue with verifyBiometric on iOS 18.3.1: Unable to Retrieve Stored Secret When Using pinFallback · Issue #616 · NativeScript/plugins
Description: Description While using iOS 18.3.1, I encountered an issue with the verifyBiometric function where enabling pinFallback prevents retrieval of the stored secret. Code Example this._BiometricAuth.verifyBiometric({ title: 'Authenticate', me...
Open Graph Description: Description While using iOS 18.3.1, I encountered an issue with the verifyBiometric function where enabling pinFallback prevents retrieval of the stored secret. Code Example this._BiometricAuth.ver...
X Description: Description While using iOS 18.3.1, I encountered an issue with the verifyBiometric function where enabling pinFallback prevents retrieval of the stored secret. Code Example this._BiometricAuth.ver...
Opengraph URL: https://github.com/NativeScript/plugins/issues/616
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[@nativescript/biometrics] Issue with verifyBiometric on iOS 18.3.1: Unable to Retrieve Stored Secret When Using pinFallback","articleBody":"\n#### Description\nWhile using iOS 18.3.1, I encountered an issue with the `verifyBiometric` function where enabling `pinFallback` prevents retrieval of the stored secret.\n\n#### Code Example\n```javascript\nthis._BiometricAuth.verifyBiometric({\n title: 'Authenticate',\n message: 'Verify your identity to access your account.',\n keyName: 'MyKeyName',\n pinFallback: true, // Allow fallback to device passcode\n ios: {\n fetchSecret: true, // Retrieve stored secret upon successful authentication\n customFallback: false, // Do not use custom fallback logic\n },\n});\n```\n\n#### Expected Behavior\n- If Face ID fails, the system should prompt the user to enter their device passcode.\n- After successful authentication (via Face ID or passcode), the stored secret should be retrievable.\n\n#### Actual Behavior\n- When `pinFallback: true`, the stored secret is not accessible.\n- This behavior seems to be affected by `customFallback: false`, even though I intend for it to behave similarly to Face ID authentication.\n- If `pinFallback: false`, Face ID failures result in an error (`SecItemCopyMatching`), and the passcode prompt does not appear.\n\n#### Question\nIs there a way to retrieve the stored secret when `pinFallback: true` and `customFallback: false`? Am I missing a configuration that allows proper fallback behavior while still being able to fetch the stored secret?\n\n#### Environment\n- **iOS Version:** 18.3.1\n- **Biometric Authentication Library:** `@nativescript/biometrics: \"1.3.1\"`\n- **Device Model:** iPhone 15 Pro, iPhone 16\n\nAny guidance or workarounds would be greatly appreciated!","author":{"url":"https://github.com/kyrstencarlson","@type":"Person","name":"kyrstencarlson"},"datePublished":"2025-02-28T18:16:37.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/616/plugins/issues/616"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:9d585496-0628-e7d7-4b2c-34dd3186c44d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8B7C:F5443:2F0BCA4:409AB22:6972B517 |
| html-safe-nonce | 97ec63a8b32b2a6cf87acf9a4aea321eb38baa05965ae8040932f39a9d11d42b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QjdDOkY1NDQzOjJGMEJDQTQ6NDA5QUIyMjo2OTcyQjUxNyIsInZpc2l0b3JfaWQiOiI1ODk2NTA2OTI4MjQxMjI3MDMxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | c720e511ed0d9640e5b6caa7e8b7a002fe4b219b3700f70bc9a579259ceece6f |
| hovercard-subject-tag | issue:2887800555 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NativeScript/plugins/616/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cd9bd7ba99c8aebfee214394aa729aafd97a9ef2f3c09d35b77a52f4b16cccb2/NativeScript/plugins/issues/616 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cd9bd7ba99c8aebfee214394aa729aafd97a9ef2f3c09d35b77a52f4b16cccb2/NativeScript/plugins/issues/616 |
| og:image:alt | Description While using iOS 18.3.1, I encountered an issue with the verifyBiometric function where enabling pinFallback prevents retrieval of the stored secret. Code Example this._BiometricAuth.ver... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kyrstencarlson |
| hostname | github.com |
| expected-hostname | github.com |
| None | 51c0d0848f5569c6fa2198e9d69bd5f8f94a83c9fa3659e40728e7732afab130 |
| turbo-cache-control | no-preview |
| go-import | github.com/NativeScript/plugins git https://github.com/NativeScript/plugins.git |
| octolytics-dimension-user_id | 7392261 |
| octolytics-dimension-user_login | NativeScript |
| octolytics-dimension-repository_id | 288901292 |
| octolytics-dimension-repository_nwo | NativeScript/plugins |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 288901292 |
| octolytics-dimension-repository_network_root_nwo | NativeScript/plugins |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 10c5e2f2307495b2750073db87e9a5d3356a924f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width