diff --git a/packages/core/src/Stores/pushwoosh-store.js b/packages/core/src/Stores/pushwoosh-store.js index 340ab7c76357..0bba30203721 100644 --- a/packages/core/src/Stores/pushwoosh-store.js +++ b/packages/core/src/Stores/pushwoosh-store.js @@ -1,4 +1,4 @@ -import { action } from 'mobx'; +import { action, when } from 'mobx'; import { Pushwoosh } from 'web-push-notifications'; import { getAppId, urlForCurrentDomain } from '@deriv/shared'; import { getLanguage } from '@deriv/translations'; @@ -18,8 +18,9 @@ export default class PushwooshStore extends BaseStore { * Pushes initialize event to pushwoosh */ @action.bound - init = () => { + init = async () => { if (!this.is_applicable && this.has_initialized) return; + await when(() => this.root_store.common.is_network_online); this.push_woosh.push([ 'init',