-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[Bug]: When Nearby devices permission is not granted, and the prompt is rejected the returned error could be improved #8718
Description
Describe the bug
Observed in RC 7.17.0 with Pixel 5a Android 14 in build 1266. After pairing and successfully transacting with Ledger, if I access settings>app>MetaMask and disable the Nearby Devices permission and attempt a transaction I encounter some challenges. Initially when I attempt the transaction I am prompted to enable Nearby Devices permission. If I allow, I can succesfully complete the transaction. However, if I reject that prompt I recieve an error message that may not be helpful for users and it is formatted poorly.
In this case an error message should be presented to encourage the user to enable Nearby Devices permission for the MetaMask app in Android settings.
Rather than saying Ledger needs location access to pair with your mobile device I believe it would be more accurate to say that MetaMask needs permission to Nearby devices to pair with your Ledger
Expected behavior
Given that I have disabled the Nearby devices permission in settings
When I attempt a tx
Then I am prompted to enable the needed permission
When I decline that prompt
Then I get an error message that explains that the permission is needed
And maybe even a link into the area of settings where a change is needed
Screenshots/Recordings
Granting permission when asked: https://recordit.co/4W9JniaG4E
Declining permission when asked: https://recordit.co/MbyA5Tx4nB
Still of the poorly formatted error:

Steps to reproduce
- Go to Settings>Apps>MetaMask and disable
Nearby Devices - Open MetaMask
- Attempt to send testnet eth
- After selecting a destination and an amount tap
Confirm with Ledger - When prompted for permission select
Don't allow - Note error
Error messages or log output
No response
Version
Build type
None
Device
Pixel 5a Android 14
Operating system
Android
Additional context
No response
Severity
No response