feat(native): an app lock with Face ID, Touch ID or the device passcode

A switch in the account settings, inside the app on a device that can unlock
that way (iOS LocalAuthentication, Android BiometricPrompt with the screen
lock as fallback). Turning it on asks once, so nobody locks themselves out.
With it on, TREK asks at launch and after half a minute in the background
before showing anything, and the app switcher shows a blurred cover (iOS) or
no snapshot (Android) instead of the screen. The setting stays on the
device, not the account.
This commit is contained in:
Maurice
2026-11-06 13:21:19 +01:00
parent dec6babe1d
commit 017f229cfc
42 changed files with 721 additions and 2 deletions
+7
View File
@@ -75,6 +75,13 @@ const native: TranslationStrings = {
'native.update.title': 'Actualitza l’app TREK',
'native.update.body': 'Aquest servidor necessita una versió més nova de l’app perquè tot funcioni.',
'native.update.open': 'Actualitza',
'native.lock.title': 'TREK està bloquejat',
'native.lock.unlock': 'Desbloqueja',
'native.lock.reason': 'Desbloqueja TREK',
'native.lock.settingTitle': 'Bloqueig de l’app',
'native.lock.setting': 'Bloqueja amb Face ID o codi',
'native.lock.settingHint':
'Ho demana en obrir TREK i després de mig minut en segon pla, i amaga l’app al selector d’apps.',
};
export default native;