FIP: Set notification status using the Miniapp SDK #239
vrypan
started this conversation in
FIP Stage 1: Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Title: Set notification status using the Miniapp SDK
Type: Standards FIP
Author: @vrypan
Status: Idea
Abstract
This FIP describes tow extension to
sdk.actions
that give Miniapps more control to set/change the notification status.Problem
sdk.actions.addMiniApp
prompts the user to "Add to Farcasetr" and "Enable notifications". Then a user can use the miniapp menu to add/remove the miniapp and turn notifications on/off.sdk.context.client
gives visibility to the status of the app (added/not added, notifications enabled/disabled) but there is no way to ask a user to change these settings.For example:
An other issue is many users have developed the habit of rejecting "Add to Farcaster" because they do not want to add more notifications to their notifications feed before understanding why the app needs them.
Specification
1. Extend
sdk.actions.addMiniApp
Add an optional
notifications: bool
parameter tosdk.actions.addMiniApp()
with default valuetrue
.sdk.actions.addMiniApp(notifications=false)
will prompt the user to "Add to Farcaster"sdk.actions.addMiniApp(notifications=true)
will prompt the user to "Add to Farcaster" and "Enable notifications"2. New
sdk.actions.setNotifications()
sdk.actions.setNotifications(status: bool)
, allows a miniapp to prompt the user to turn notifications on/off.When called, the user will be prompted to enable/disable notifications (modal similar to
addMiniApp()
.If the app is not added to Farcaster,
sdk.actions.setNotifications(status=true)
will trigger a modal to "Add to Farcaster" and "Enable Notifications". In this casesdk.actions.setNotifications(status=true)
will have the same result assdk.actions.addMiniApp(notifications=true)
.Beta Was this translation helpful? Give feedback.
All reactions