6

I am not planning to send this app to AppStore. It's just an experimental app. So, I am not worried about AppStore approval/rejection.

I am looking for a way, how I can determine

a) What is the current foreground app (my app will be in the background at that moment. I may use audio player or voip for this)

b) Detect when new application became foreground app

Victor Ronin
  • 22,758
  • 18
  • 92
  • 184
  • I'm not quite sure why you would want this unless you're developing a jailbreak tweak... – pasawaya Jul 02 '12 at 19:29
  • I upvoted the question. While I work developing AppStore apps, I still think this is a legit development question. – pgb Jul 02 '12 at 19:44
  • 4
    2qegal: First of all, private API are perfectly legit thing for enterprise in-house or ad-hoc distribution apps. Secondly, private API work on NON jailbroken devices. So, my question has no relation to jailbreak tweaks. – Victor Ronin Jul 02 '12 at 19:50
  • Private API's work on non-jailbroken devices but Apple typically rejects apps that utilize private API's. You're right about the enterprise in-house/ad-hoc distribution part though. – pasawaya Jul 03 '12 at 02:00

1 Answers1

0

It looks like this question has this answer for mine question. how to determine which apps are background and which app is foreground on iOS by application id

It boils down to SBFrontmostApplicationDisplayIdentifier private API

Community
  • 1
  • 1
Victor Ronin
  • 22,758
  • 18
  • 92
  • 184