oblador / react-native-keychain

:key: Keychain Access for React Native
MIT License
3.12k stars 515 forks source link

App crash on launch - Only happens on Huawei devices #627

Closed omerkarakose closed 3 months ago

omerkarakose commented 3 months ago

Versions:

react-native: 0.73.4
react-native-keychain: 8.1.3

We have a crash log on Sentry dashboard and complains from customers which are using Huawei devices. Sentry also supports this crash is only happening on Huawei devices.

Crash log:

Screenshot 2024-03-12 at 11 52 05

App permissions:

Screenshot 2024-03-12 at 11 55 54

And we have only StrongBox security storage is not available. breadcrumbs:

Screenshot 2024-03-12 at 11 53 44

As you can see, app is crashes with DeadObjectException without any logs. We don't have any Huawei device to debug and simulate this behavior.

When we review the related code, we can see that if StrongBox is not available, then code execution continues to generate regular secretKey.

Any ideas how to fix this issue?