-
Notifications
You must be signed in to change notification settings - Fork 222
Fix: Prevent Family Wallet Connection Pop-up from Being Blocked #461
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Fix: Prevent Family Wallet Connection Pop-up from Being Blocked #461
Conversation
|
@GianlucaMinoprio is attempting to deploy a commit to the Avara Team on Vercel. A member of the Team first needs to authorize it. |
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
hey @GianlucaMinoprio, thanks for the PR! example: if(isMobile) {
connect({ connector });
} else {
context.setRoute(routes.CONNECT);
} CleanShot.2025-05-21.at.23.20.34.mp4 |
|
Because connect is being called twice in this case, I recommend moving the logic into a Familyreject.mp4For the familyAccountsProvider, I believe the connection should remain tied to the button click. This ensures consistent behavior across the Apple ecosystem and helps avoid the pop-up being blocked. On both iOS and desktop Safari, pop-ups triggered outside of a direct user interaction (like a button click) are blocked, resulting in a failed connection attempt. It’s frustrating UX when a smooth pop-up could have worked. Right now, the only issue is that I’m unable to detect the error message that rejects the connection inside ConnectWithinjector. Other than that, everything is working well. |
|
Pushed the update @lochie, if you’re able to find a way to detect when the connection is canceled, that would be awesome. Let me know if I can help debug! |
|
I've added a small change so that the direct connect from the button only work for Family Account: In the |
356001c to
9102bdb
Compare
This PR addresses an issue where the Family Wallet connection pop-up was being blocked by browsers due to it not being triggered by a direct user interaction.
Changes Made
🎥 Demo
ScreenRecording_05-13-2025.20-10-06_1.MP4
A video has been created showing the difference between:
🔍 Testing
Tested across: