CondoWebAppShowNotification

This method allows you to show a notification to the user. The most common example of use is to report an error/success.

Platforms

  • B2B-Web

Method params

Parameter nameParameter typeRequiredParameter description
typeinfo | warning | error | successyesNotification type
messagestringyesNotification header. For example: "An error has occurred".
descriptionstringnoThe body of the notification, which should describe the details of the notification

Return value

If successful, the method will return a JSON object containing a single success field:
json
{ "success": true }

Usage examples

typescript
import bridge from '@open-condo/bridge' bridge.send('CondoWebAppShowNotification', { type: 'error', message: 'Error occurred during integration', description: 'Your account does not have the email address required to connect the mini-application' })
notification-example