Send notification to the subscribers

Send notification to the subscribers-

function sendAppNotification(
	      bytes32 _appId,
        address walletAddress,
        string memory _message,
        string memory buttonName,
        string memory _cta,
        bool _isEncrypted,// if encrypted message or not
        bool isOauthUser// mostly false
)

Make sure you encrypt the fields - _message, buttonName and _cta from your frontend.

Note: Only the dapp admin can send the notifications.

Last updated