Skip to content

[Android] native module fails to initialize for some users #78

@jinjinwang02

Description

@jinjinwang02

Firstly thanks for creating this great package!

We're seeing this error in production for a small number of Android users:

message: Failed to load Wallet module, make sure to link @expensify/react-native-wallet correctly,
name: Error,
stack: 
Error: Failed to load Wallet module, make sure to link @expensify/react-native-wallet correctly
    at getModuleLinkingRejection (address at index.android.bundle:1:3912291)
    at checkWalletAvailability (address at index.android.bundle:1:3912369)
	...

Affected devices:
Samsung SM-S936U (Android 16)
Samsung SM-S938U (Android 16)
Samsung SM-A146U (Android 16)
Motorola Edge 2024 (Android 15)
Android 8.1.0 device

However for most users they were able to initialize the module and add to Google Wallet successfully.

Questions:
What causes TurboModuleRegistry.getEnforcing('RNWallet') to fail on some devices but not others?
Is this expected behaviour for certain device configurations?

Many thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions