A
A
Alexey2020-02-10 18:11:41
iOS
Alexey, 2020-02-10 18:11:41

How to force not to show a push notification that the application does not know about?

Hello! I'm doing push notifications and there was such a question.
There are two versions of the application, version 1 is installed on one phone, version 2 is installed on the second.
They have differences in that application 2 knows and can process push messages with the "new_follower" type. In the first version of the application, this is not.
But, when the server sends a push, iOs displays it regardless of whether there is such functionality in the application or not. Because the system doesn't know about it. And you can create a simple condition only after the user opens the notification. Because the application has access to the data container, which comes in a push notification only after the application is opened.
How to be in such a situation. After all, the user can have many devices on which there can be a different version of the application.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Vorobei, 2020-02-10
@ivanvorobei

Send push notifications for a specific version (and higher).
Associating token and device information is a backend task .
If you suddenly use a firewall, it works out of the box.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question