Content pfp
Content
@
0 reply
0 recast
0 reaction

Tony D’Addeo  pfp
Tony D’Addeo
@deodad
Frames Improvement: client side events Users can take actions from the frame chrome like adding the frame and turning on notifications. The SDK now fires events for these events so that frames can react to these state changes. You can try it out in Developers > Frames > Demo. Check out the docs here: https://docs.farcaster.xyz/developers/frames/v2/spec#feature-frame-events See the example usage in the Demo repo: https://github.com/farcasterxyz/frames-v2-demo/pull/17
5 replies
9 recasts
40 reactions

Tony D’Addeo  pfp
Tony D’Addeo
@deodad
It's now relatively straightforward to render a custom prompt within your frame to prompt users to turn add your frame or turn on notifications if they haven't done so: - use context.client to get the initial state for added / notifications https://docs.farcaster.xyz/developers/frames/v2/spec#context-client - subscribe to frameAdded / notificationsEnabled to update your UI https://docs.farcaster.xyz/developers/frames/v2/spec#feature-frame-events
1 reply
1 recast
11 reactions

davisshaver.eth pfp
davisshaver.eth
@davisshaver
what would be your recommended way to prompt users who are already `context.client.added` but not `context.client.notificationDetails` to turn on notifications? I want to add an "Enable notifications" flow for them but not sure if there's a callback I could use for that flow.
1 reply
0 recast
1 reaction

Tony D’Addeo  pfp
Tony D’Addeo
@deodad
ah bad example from my part because there isn't a good way to do this right now the user needs to manually open the frame management UI and make this change we are discussing what's the best way to do this—will likely need another action specifically for this
0 reply
0 recast
1 reaction