iOS 8 - How to determine the foreground app as wel

2020-06-09 09:28发布

问题:

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?

回答1:

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