We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Show toast from background service

Hi, 

I have a background service, that checks some database conditions every 30 seconds, can I show a Toast message from that background task regardless of the page that is active?


I already implemented a Toast Service, but when trying to use it in background service it requires the object.

 this.ToastService.Open(new ToastModel()


Is it possible?

Thank you,
Helder Correia



1 Reply

PK Priyanka Karthikeyan Syncfusion Team May 24, 2023 05:43 PM UTC

Hi Helder,


We have created a sample utilizing the toastService. Kindly make sure to verify that the toastService is properly injected in your sample. Additionally, it would be helpful if you could provide further information regarding the background service you used. If you are still encountering difficulties, please modify the shared sample or providing us with a issue replicating sample along with a video demonstration, if possible. This will enable us to offer more effective assistance.


Regards,

Priyanka K


Attachment: Net6ServerToastService257043864_48778bf2.zip


Loader.
Live Chat Icon For mobile
Up arrow icon