CondoWebAppGetActiveProgressBars

This method retrieves all progress bar notifications that have not already been closed by the user. If you use these notifications in your mini-app, it is recommended to call this method every time mini-app is started to keep your tasks in sync. (close obsolete notifications, add new ones in case of session/user browser changes).

Platforms

  • B2B-Web

Method params

This method takes no parameters.

Return value

If successful, the method will return a JSON object containing the bars field - an array with all the active progress bars:
json
{ "bars": [ { "id": "9e4dd15a-aec6-4d81-90e3-fab58deac8c0", "message": "Uploading some data", "description": "Please keep the page open", "progress": 0, "externalTaskId": "de74da8d-207a-4a25-bf52-5bce25efe860" }, { "id": "30cc8153-2d71-4be5-98dd-f2eae4cbfc82", "message": "Uploading some data", "description": "Please keep the page open", "progress": 0, "externalTaskId": "2179294d-f77e-4d54-9bac-94094f94adcc" } ] }

Usage example

typescript
import bridge from '@open-condo/bridge' bridge.send('CondoWebAppGetActiveProgressBars').then((data) => { console.log(data.bars) })
active-progress-bar-example