Content
@
https://warpcast.com/~/channel/fc-devs
0 reply
0 recast
0 reaction
Darryl Yeo đ ïž
@darrylyeo
Feedback regarding detection of mini-app hosts: âą Option 1 (well-known query parameter) would be the worst because itâs another identifier apps need to hardcode and will be easily spoofed (akin to browser extension wallets setting `isMetaMask` to true on their `window.ethereum` object). Just continue to let apps specify custom params for themselves in `<meta name="fc:frame">` if they really need it. âą Option 2 (message passing) is ideal but can be improved further â I recommend turning it into a two-way message system modeled after EIP-6963 to avoid race conditions. (Also while youâre at it, use EIP-6963 to announce Farcaster Walletâs EIP-1193 object to the app for instant compatibility with existing wallet picker UIs.) âą Option 3 (`isInMiniApp()` SDK function) â this is fine assuming apps donât already have the SDK code-split from their main client-side bundle, but maybe redundant to Option 2.
2 replies
0 recast
4 reactions
Darryl Yeo đ ïž
@darrylyeo
EIP-6963: https://eips.ethereum.org/EIPS/eip-6963 https://warpcast.com/darrylyeo/0xb5094494
1 reply
0 recast
0 reaction
Darryl Yeo đ ïž
@darrylyeo
GitHub discussion: https://github.com/farcasterxyz/miniapps/discussions/222#discussioncomment-13054763
1 reply
0 recast
0 reaction