public override async void OnReceive(Context context, Intent intent)
        {
            bearerToken = SharedPreferencesHelper.GetBearerToken(context);
            if (bearerToken == null)
            {
                return;
            }
            var isUserConnectedToInternet = await DoesUserHasInternetConnection(bearerToken);

            if (!isUserConnectedToInternet)
            {
                return;
            }
            this.context = context.ApplicationContext;
            var powerManager = (PowerManager)context.GetSystemService(Context.PowerService);

            _wakeLock = powerManager.NewWakeLock(WakeLockFlags.Partial, "MSH");
            _wakeLock.Acquire();
            timerTick     = 1;
            timerInterval = 1000 * 5;
            timer         = new System.Threading.Timer(new TimerCallback(TimerCallBackMethod));
            timer.Change(timerInterval, timerInterval);

            this.appsettings = SharedPreferencesHelper.GetAppSettings(this.context);
            if (!appsettings.ChatDisabled)
            {
                MessengerService.AddOutsidePendingWork();
                chatHubServiceInstance = ChatHubClientService.GetServiceInstance(bearerToken);
            }
            if (!appsettings.NotificationsDisabled)
            {
                SetCheckingNewAdvertisementsAction(context);
                checkingNewAdvertsAction();
            }
            else
            {
                checkingNewAdvertsFinished = true;
            }
        }