Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add wallet connect notification #909

Open
wants to merge 3 commits into
base: next
Choose a base branch
from

Conversation

mikasackermn
Copy link
Collaborator

@mikasackermn mikasackermn commented Oct 13, 2024

Summary

This is about how we could use wallet connect notification service to push notification for users, especially for swap status.

Based on the R&D conducted, the following tasks should be carried out:

AppKit Notifications supports EOA accounts on all eip155 (EVM) chains, and smart accounts on all eip155 chains that our Blockchain API supports.

Cloud reown

This panel is used to configure the project to receive notifications and to manage existing notifications.

To configure the project, first create the project, then navigate to the settings and select the Notify API option. Here, you can add the project's domain, Dapp name, description, and logo. Additionally, you can create different types of notifications. After that, a JSON file is generated that we should download and include in project. Finally, we can set up a welcome notification for our subscribers.

Implementation

For the implementation, we need to use the @web3inbox/react package.

On the widget side, we need a section where users can subscribe to receive notifications. In this section, notifications should also be displayed, and users should have the option to unsubscribe.

According to the docs, we can receive different types of notifications and display them to the user, giving the user the option to enable or disable specific types.

Another point we need to consider for the implementation is that the initial data required should be retrieved from the config. Additionally, we need to add the did file to the project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant