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
Thank you very much!!
|
“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. |
Thank you Suja Venkatesan. Example applications like Facebook,Viber, Whatsapp, are able to show you the notification even are totally closed.
Thank you very much!!!