Outblock / FRW-Android

Flow Reference Wallet - Android Client
Apache License 2.0
0 stars 5 forks source link

[FEATURE] Insufficient Balance Alert #426

Open Peppermint1020 opened 1 week ago

Peppermint1020 commented 1 week ago

Description

When a user's total account balance falls below 0.001 FLOW, they must be notified to add funds, as the account becomes unusable without additional balance. This feature will display an alert when the insufficientBalance flag is true (totalBalance < 0.001).


Acceptance Criteria

  1. Flag Check:

    • Display the alert when insufficientBalance is true (totalBalance < 0.001).
  2. Notification Behavior:

    • Notification text:

      "Your FLOW balance is too low. Please add funds to continue using the wallet."

    • Include a button to navigate to the Buy Token page.
  3. Trigger Conditions:

    • Same as insufficientStorage, we need show this alert on homepage and anywhere when user integrate with blockchain.

Technical Requirements

  1. Use the insufficientBalance flag based on totalBalance.
  2. Fetch balance from the Flow blockchain.
  3. Design a dismissible alert UI with navigation to Add Balance.

Tasks