Safari extension - processes in background

What is the mechanizm to make works in background for Safari extension?

For example every 15 minutes get fresh data from a server by request...

Replies

Can you add a little more detail about what you are trying to do?

Good day, bweinstein.

Thank you for the response.


Let's imagine that in our extension (in popup) we display information about an user, for example his bonuses balance (for example he has 15 bonuses in his balance)

Today the user, for example ordered something and received new bonuses +5 bonuses. We want to show him the actual bonuses balanse (15 + 5 = 20 bonuses), so we need every 15 minutes synhronize with database (via API) to make the number of bonuses balance actual in our exatension - 20 bonuses instead of previous state 15 bonuses.


If you required addidional details please guide we ni correct way...