Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS 8 - How to determine the foreground app as well as get list of running apps

On iOS 7.0 and below, SBFrontmostApplicationDisplayIdentifier from the Springboard framework specified the app running in the foreground, but that capability has been blocked (considered as a vulnerability, see the Common Vulnerabilities and Exposures page dedicated to it here) in iOS 8.

Does anyone have an iOS 8 alternative for this?

like image 836
Besufekad Avatar asked Oct 02 '14 12:10

Besufekad


People also ask

How do I know if an app is in foreground iOS?

To detect if an iOS application is in background or foreground we can simply use the UIApplication just like we can use it to detect many other things like battery state, status etc. The shared. application state is an enum of type State, which consists of the following as per apple documentation.

How do I see open apps on iPhone 8?

To see all your open apps in the App Switcher, do one of the following: On an iPhone with Face ID: Swipe up from the bottom of the screen, then pause in the center of the screen. On an iPhone with a Home button: Double-click the Home button.

How do I keep iOS apps running in foreground?

To keep apps running in the background on iPhone, you can turn on the background app refresh feature. Go to Settings, General, Background App Refresh and turn it on. In the following apps, toggle on the ones you want to keep running.


1 Answers

It is not possible to do it on iOS 8 since a vulnerability was discovered. More info here: http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2014-4361

like image 73
Profezy Avatar answered Oct 23 '22 06:10

Profezy