Endless background service

Hello developers, i want to create a chat application. I need when a new message will be received, to notify user by using a local notification. I also need to look for new messages even when applicaiton is totally closed.

Is there any method which i can do that? Do i need to create an endless background service? Is there any other way?

Thank you


8 Replies

SV Suja Venkatesan Syncfusion Team October 11, 2021 02:08 PM UTC

Hi Diogenis, 

Thank you for contacting syncfusion support. 

Currently, We are checking this requirements with development team. We will update you further details on or before October 13, 2021. We appreciate your patience until then. 

Regards, 
Suja. 



DC Diogenis Christoforidis October 11, 2021 02:28 PM UTC

Thank you very much!!



SV Suja Venkatesan Syncfusion Team October 12, 2021 02:05 PM UTC

Hi Diogenis 

Thanks for the update. 

As promised we will update the further details on October 13, 2021. We appreciate your patience until then. 

Regards, 
Suja. 



SV Suja Venkatesan Syncfusion Team October 13, 2021 03:42 PM UTC

Hi Diogenis, 

Thanks for your patience. 

Regarding your requirements , 
“when a new message will be received, to notify user by using a local notification”.  
 
You can achieve your requirements by Messages.CollectionChanged event. Please refer the following documentation link for your reference. 
“need to look for new messages even when applicaiton is totally closed” 
We regret to let you know that we are unclear about this scenario and unable to understand from where (source for the messages) the new messages will be obtained when the application is totally closed. Kindly revert to us with more details about this scenario. It will help us to check the possibilities and to provide  prompt solution. 

Please let us know if you need further assistance. 

Regards, 
Suja. 



DC Diogenis Christoforidis October 13, 2021 08:08 PM UTC

Thank you  Suja Venkatesan. Example applications like Facebook,Viber, Whatsapp, are able to show you the notification even are totally closed. 



SV Suja Venkatesan Syncfusion Team October 14, 2021 12:28 PM UTC

Hi Diogenis,   

Thanks for the update.   

Regarding your requirement “need to look for new messages even when applicaiton is totally closed”   

We would like to let you know that our SfChat control is only User interface (UI) to manage the conversation messages. Details about the possibility of receiving the notification even after the application has been closed should be obtained from the application's corresponding service provider. Please let us know if you require any assistance regarding the customization of the SfChat control.   

Regards,   
Suja.  


DC Diogenis Christoforidis October 14, 2021 01:27 PM UTC

Thank you very much!!!



SV Suja Venkatesan Syncfusion Team October 15, 2021 03:05 PM UTC

Hi Diogenis, 

Thanks for the update. 

Please let us know if you need any other assistance.  

Regards, 
Suja. 


Loader.
Up arrow icon