-
Couldn't load subscription status.
- Fork 5
On Android uport signer method showSeed doesn't return anything #41
Description
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)".
- 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})
- 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:
- create a new react-native project using version <=0.59.9 and add react-native-uport-signer 1.5.0.
- run the project on a smartphone/emulator that has the fingerprint hardware, but not a fingerprint registered. Use a pin/password/swipe instead.
- create a seed by using RNUportHDSigner.createSeed('prompt')
- show the seed by using RNUportHDSigner.showSeed(uportAddress)
- 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