Skip to content

Bug: Cannot sign anything in Android/react-native #7

Description

@sgraphics

Describe the bug

Try personal_sign or sign typed data or sign transaction

Steps

  1. create new CoinbaseProvider and initialize as per documentation (https://mobilewalletprotocol.github.io/wallet-mobile-sdk/docs/client-sdk/rn-install)
  2. Shows Base Wallet and I can press Allow (wallet UI appears embedded within my app, not separate app)
  3. My app shows wallet as connected
  4. run request provider.request({ method: 'personal_sign', params: [message, address] })
  5. Shows Base Wallet as Activity (wallet UI appears embedded within my app, not separate app)
  6. Press Sign
  7. 4001 "User rejected the request'" received in my app

Expected behavior

Should return to my app with a proper signature.

Version

@coinbase/wallet-mobile-sdk version 1.1.2

Additional info

Same thing happens with sign typed data. And 4200 "Unable to complete action" happens when signing transactions.

The integration seems totally broken.

Also, to repeat, docs mention to use Linking.addEventListener("url", ({ url }) => {}) to receive information from the wallet through deep linking. But this handler or any other handler is never run. Probably because it seems to use android Activities instead of deep linking - or perhaps something fails in Base Wallet before it sends back the deep link? The Base Wallet appears embedded within my app, not as separate app in task manager. Is this some change in Coinbase Wallet (Base Wallet) configuration??

Desktop

Smartphone

  • Android emulator
  • Expo (not Expo Go)
  • Metro
  • Latest @coinbase/wallet-mobile-sdk version 1.1.2 and react native 0.79.5

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