D.Pacheco
D.Pacheco

Reputation: 540

Xamarin FCM not working while app is closed

I am using Firebase cloud messaging for remote notification in Xamarin Android, the notification are working fine while the app is in foreground and in background but if the app is closed the notification do not arrive.

I followed step by step the Xamarin tutorial.

Any idea?

Upvotes: 2

Views: 1515

Answers (1)

Adrián Romero
Adrián Romero

Reputation: 620

The problem happeds because VS literally kills your app, so the background proccess that listens for push notifications die, so it will no longer respond. What you have to do for test push notifications is debug and reinstall de app every single time.

Best Regards.

Upvotes: 5

Related Questions