cometchat-go / xamarin-forms-chat-sdk-demo

CometChat Demo App for Xamarin Forms
6 stars 4 forks source link

Do not receive notifications when android application is closed #23

Open prakash-malodiya opened 5 years ago

prakash-malodiya commented 5 years ago

I have created xamarin.forms application using cometchat integration. While I was receiving push notification when application is running or in sleep mode. but when application is closed not get any notification. Is it necessary to subscribe channel every time for user1 is login and chat with user2.

joseBarreto commented 5 years ago

I have created xamarin.forms application using cometchat integration. While I was receiving push notification when application is running or in sleep mode. but when application is closed not get any notification. Is it necessary to subscribe channel every time for user1 is login and chat with user2.

Hello Tp16190, I've already opened a call for this problem. I think they're already investigating. One solution, at least for android, is to use a service with startforeground, so the cometchat's UI can always be displayed, even with the application closed.

https://github.com/CometChat/xamarin-forms-chat-sdk-demo/issues/5