Dan Romero
@dwr.eth
PSA If your mini app has a Connect Wallet button, you're making your UX way worse. The whole point of mini apps is that they "just work" on mobile. No Cheesecake Factory-style menu of wallets to choose from. Most Farcaster clients are wallets. Just use the wallet that is embedded in the client.
43 replies
86 recasts
606 reactions
steve
@steven-b
I’m using the @neynar mini app tutorial repo as the base for my app and sometimes the mini app doesn’t properly “just connect” so you need to prompt the user to connect again. Not sure exactly what’s going on with the WagmiProvider but the wallet connection doesn’t always detect/work
2 replies
0 recast
1 reaction
Manan
@manan
@steven-b can you share the mini app where you're seeing this behavior? Were you using the mini app in the Farcaster mobile client or the Coinbase Wallet mobile client?
1 reply
0 recast
1 reaction
steve
@steven-b
It’s my unreleased mini app that’s currently in development but I’m testing it in the farcaster developer tools debug tab, both on mobile and browser. I don’t run into the issue often on mobile but somewhat often in browser. Usually reloading the app/refreshing the page fixes it or at least prompts to connect wallet
1 reply
0 recast
1 reaction
Manan
@manan
Ok, thanks for describing it in detail. Is there a need to switch chain within your mini app? I remember having a similar experience in the farcaster debug tool on web in a mini app that I was building that didn’t use the neynar starter kit. It had some chain switching logic where the connect was unreliable.
1 reply
0 recast
1 reaction
steve
@steven-b
Nope, no need to switch chains. I only use Base network. The only reason I even created a connect wallet button was I was getting an occasional error message along the lines of “chain Id is null” in connectors.ts (I could get an exact message next time I’m home and developing) But essentially there are intermittent failures where the mini app couldn’t detect a wallet connection even when inside a farcaster environment. Not a huge dealbreaker for me bc whatever button would trigger a wallet action I just overlay a ‘connect wallet’ when it doesn’t detect the connection
0 reply
0 recast
0 reaction