[英]Which app is open when my is on background?
I'm doing focusing iOS app on swift5, Xcode 10.3 I found function applicationDidEnterBackground but I can't find if there is any possible way to check which program user opened while my was on background?我正在关注 swift5 上的 iOS 应用程序,Xcode 10.3 我找到了 function applicationDidEnterBackground 但我无法找到我的用户是否打开了我的程序Can I know was it calculator or instagram?
我能知道它是计算器还是Instagram?
Apps on iOS are sandboxed and can not directly communicate with other apps directly. iOS 上的应用程序是沙盒的,不能直接与其他应用程序直接通信。 There are some API's in the iOS SDK which allows some interaction, mostly audio, share of items.
iOS SDK 中有一些 API 允许一些交互,主要是音频,项目共享。
Apple does not expose to you app if an other app is launched, so checking that an other is launched is not possible.如果启动了其他应用程序,Apple 不会向您公开应用程序,因此无法检查其他应用程序是否已启动。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.