Perform routines in the background and display messages?

Good evening!

It can run commands in the background (service) in ionic and display messages?
Basically you had to access a remote server and display messages depending on the result …

att