lisk-mobile icon indicating copy to clipboard operation
lisk-mobile copied to clipboard

Error encrypting account on Android simulator

Open clemente-xyz opened this issue 2 years ago • 0 comments

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:

  1. Secret recovery phrase: Screenshot 2022-08-26 at 17 17 12

  2. Create account button click (app breaks here): Screenshot 2022-08-26 at 17 30 22

On iOS Simulator works perfectly.

Steps to reproduce

  1. Run the app on Android device (npm run android). Make sure you follow all the install & setup instructions from the README.
  2. Go to the Manage accounts screen.
  3. Click on Create it now label button, or Secret recovery phrase button.
  4. Enter recovery phrase and click on Continue.
  5. Enter passwords and username (meeting password requirements). Tested with password Password1!.
  6. Agree on terms and conditions toggle.
  7. Click on Save account
  8. 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.

clemente-xyz avatar Aug 26 '22 15:08 clemente-xyz