2 Replies
      Latest reply on Jul 12, 2019 12:35 PM by KMT
      teknekk Level 1 Level 1 (0 points)

        Guys,

         

        I'm working on a child protection app which can block and notify when children trying to use phone while driving. This is the functionalty of my App.

         

        1. My application is running in the backgroud. I'm using location based service to keep it running in background.
        2. When user trying to use an app while driving , I want to identify that app and if that's a social media app or chatting app , I want to notify user not to use that and also send an alert to parents.

         

        To do that, I want to identify what is the app currently running in the foreground using my background app. Is there any way to get the name of the foreground app using a background service ?