K
K
Kirill Ushakov2019-08-15 19:29:11
Android
Kirill Ushakov, 2019-08-15 19:29:11

Android: Push notifications when app is closed?

It is necessary to poll the server and send pushes to the client in case of new messages. (as it is implemented in messengers, for example).
All search results are displayed on a bunch of service and receiver, but when the application is closed, someone dies.
I'm not asking you to do it, please let me know what to use.
PS. The only option that got started was with foregroundService, but the constantly hanging message is not ice.
P.P.S. As far as I understand it is impossible to do without FCM at the current time?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Developer, 2019-08-15
@samodum

Yes, you need to do it through FCM if you want stability and less problems.
Basically, that's what it's made for.

V
Vadim, 2019-08-15
@supgordan

FCM allows you to send pushes even if it is closed, you simply catch them with the service and display them

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question