lisk-mobile
lisk-mobile copied to clipboard
Error encrypting account on Android simulator
Expected behavior
When setting up a device password or trying to create an account, I should be able to encrypt and proceed successfully to the account creation.
Actual behavior
On Android Simulators, the process fails giving the following error:
{
error: [
Error: Secure random number generation is not supported by this browser.
Use Chrome, Firefox or Internet Explorer 11
]
}
The error occurs on 2 places of the app:
-
Secret recovery phrase:
-
Create account button click (app breaks here):
On iOS Simulator works perfectly.
Steps to reproduce
- Run the app on Android device (
npm run android
). Make sure you follow all the install & setup instructions from theREADME
. - Go to the Manage accounts screen.
- Click on Create it now label button, or Secret recovery phrase button.
- Enter recovery phrase and click on Continue.
- Enter passwords and username (meeting password requirements). Tested with password
Password1!
. - Agree on terms and conditions toggle.
- Click on Save account
- You will see an error toast.
Tested on:
- Processor: Apple M1 Pro
- OS: macOS Monterrey 12.4.
- Simulator: Android Studio Chipmunk | 2021.2.1 Patch 2
- Runtime version: 11.0.12+0-b1504.28-7817840 aarch64
- VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
- GC: G1 Young Generation, G1 Old Generation
- Memory: 1280M
- Cores: 10
- Registry: external.system.auto.import.disabled=true
Which version(s) does this affect? (Environment, OS, etc...)
Development, Android.