There is an ios application, with a firebase backend (authorization, database, push). The problem is that in its standard configuration, pushes can only be sent from the console. And you need to make it so that you can send a push directly from the application. As I understand it, you need to write your server. Is there any sense from their services? Or maybe there is a way without writing a server? In general, the question is - what is the easiest way to make a normal notification from the current situation?
- firebase for you does not send the push, because they do not know your business logic - in what situation and what kind of push you need to send. Maybe they have some standard templates, but you still have to write. - Max Mikheyenko
- oneApparently, you need to first understand how Push notifications work so that there are no questions. Good stuff to start here: habrahabr.ru/post/156811 . And so most likely to write your server. Well, or the second option, if they are advanced, then maybe they have their own API for sending custom notifications from the application. Let's say you pass push id and playload through a certain request and notification to go. Study their documentation. - Vitali Eller
- one"Writing a server" as such is not necessary. Personally, I created a branch in the database in which the devices write a push to send. I have a python script and a go program (~ 100 lines) which, with the help of two libraries from the jithab, monitor this thread through the REST API and send them. The server is not needed, you can even run a binary / script on your home PC, but personally I have it on a virtual hosting. I can share, if interested - Dima Rostopira
- oneAlthough this is in principle a suitable material for an article in Habré, only hands don’t get to write at all - Dima Rostopira
- I would be very happy with such an article, hardly without it I will figure out the python and go) Actually, I did it directly so that everything went straight from the device (although Google doesn’t recommend it, but I didn’t figure it out yet) - Eugene Strelnikov
|