Android app not receiving Firebase Notification when app is stopped from multi-task tray

前端 未结 6 1271
长发绾君心
长发绾君心 2020-11-21 10:14

I have read a similar question on SO, however, I was not able to get the correct answer from it.

I have a system wherein we send notification to around 500 devices.<

6条回答
  •  一生所求
    2020-11-21 10:47

    I was also facing the same issue, But then I realized after lots of debugging that, i was stopping the services that receive the Firebase notifications in on stop method of one of the activities.

    1. Please check whether you are stopping these services anywhere in the app.
    2. Make sure you are using service and not intent-service.
    3. Swiping the app will never stop services. So try to debug the app for first two point.

提交回复
热议问题