Skip to content
This repository was archived by the owner on Feb 1, 2021. It is now read-only.
This repository was archived by the owner on Feb 1, 2021. It is now read-only.

On Android uport signer method showSeed doesn't return anything #41

@MarcoLude

Description

@MarcoLude

Hi all,

the following issues seem to appear only on Android.

We have a project with react native 0.59.9 and we are using react-native-uport-signer (1.5.0) to handle private key and seed phrase.
We create the seed by using "RNUportHDSigner.createSeed('prompt')"

We faced 2 weird issues while using the function "RNUportHDSigner.showSeed(uportAddress)".

  1. If the smartphone has the fingerPrint hardware but the user has just set up a pin/password/swipe security method without the fingerprint, the showSeed method asks for the set security option (pin/password/swipe), but as soon as the user verifies it the showSeed method doesn't return anything. We cannot even catch any error, it seems just to go in an infinite loop. We use the following methodology:

RNUportHDSigner.showSeed(uportAddress)
.then(seedPhrase=>{ //handle seed phrase })
.catch(error=>{console.log("error: ",error})

  1. If we try to add a customized message to be prompt to the user, it doesn't work.
    We use this:

RNUportHDSigner.showSeed(uportAddress, 'Please, unlock your phone to reveal the recovery phrase')

But the message prompt is just "uPort".
Tested on Android 9, Android 7, Android 6 with multiple devices/emulators.

You can reproduce the issues by using also an emulator:

  1. create a new react-native project using version <=0.59.9 and add react-native-uport-signer 1.5.0.
  2. run the project on a smartphone/emulator that has the fingerprint hardware, but not a fingerprint registered. Use a pin/password/swipe instead.
  3. create a seed by using RNUportHDSigner.createSeed('prompt')
  4. show the seed by using RNUportHDSigner.showSeed(uportAddress)
  5. try to log the seedPhrase returned by "showSeed"

The first one is an issue a bit urgent, could you please check it as soon as possible?

Thank you very much

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions