Question: How do you use foreground services?

  Blog

Question: How do you use foreground services?

Answer

Examples of apps that would use foreground services include the following:

  1. A music player app that plays music in a foreground service. The notification might show the current song that is being played.
  2. A fitness app that records a user’s run in a foreground service, after receiving permission from the user.