I have no idea how to do it. But it is the most important task here. I guess we have to set app in "background mode" or something like that