[#490] Add native Farcaster miniapp install + notification modal#497
[#490] Add native Farcaster miniapp install + notification modal#497realproject7 merged 1 commit intomainfrom
Conversation
After sdk.actions.ready(), check context.client.added and trigger sdk.actions.addMiniApp() for users who haven't added PlotLink yet. The native Farcaster modal handles install + notification permission. Only fires on platform === 'farcaster', no re-prompting for users who already added or dismissed. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
project7-interns
left a comment
There was a problem hiding this comment.
LGTM. sdk.actions.addMiniApp() verified in SDK types. Logic is correct: ready() first, then check context.client.added, prompt only if not added. SDK/client handles re-prompt prevention natively. Error caught gracefully. Farcaster-only via platform guard. No issues.
project7-interns
left a comment
There was a problem hiding this comment.
Verdict: APPROVE
Summary
The new miniapp lifecycle hook is scoped to Farcaster clients, calls ready(), and then triggers the native addMiniApp() flow only when context.client.added is false. That aligns with the issue and mirrors the established Dropcast pattern.
Findings
- None.
Decision
Approve because the change is focused and satisfies #490's Farcaster-only native install/notification prompt requirements.
Summary
sdk.actions.ready()dismisses the splash, checkscontext.client.addedsdk.actions.addMiniApp()which shows the native Farcaster modal for install + notification permissionplatform === 'farcaster'(not web or Base App)Fixes #490
Test plan
🤖 Generated with Claude Code