Sending Notification from Smart Contract
Last updated
Last updated
EPNS allows various ways to integrate the protocol into your service. The following flow shows how your server can integrate and send notification to the protocol.
Use your internal logic to figure out what notification you want to send (i.e. alerting users on some smart contract event, user actions, etc).
This can be done by either having internal logic cooked in your protocol or better yet having a function which you can call from outside which can interact with our protocol.
Please check for supported payload types and their requirements.
Either pass the hash of the content or the data in bytes to EPNS protocol.