简体   繁体   English

当我在后台时打开哪个应用程序?

[英]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.

相关问题 当我的应用程序处于后台时,将其他应用程序的文件/内容打开到我自己的iOS应用程序中 - Open file / content of other app into my own iOS app, when my app was in background 当应用程序不在后台时打开通用链接 - Open universal link when app is not in background 当我的应用程序处于终止模式(不在后台)时,远程通知到达时哪个代表首先调用 - Which delegate called first when remote notification arrived, while my app is in killed mode(not in background) 当应用程序在后台运行时,将触发哪种方法进行推送通知? - Which method will be triggered for pushnotification when app is in background? 接收位置信息而无需在后台打开我的应用 - Receiving location information without having my app open in the background 当应用程序在ios后台运行时如何打开sqlite数据库 - How to open sqlite database when app runs in background in ios 是否可以从后台模式或当应用程序被杀死时打开 ViewController? - Is it possible to open ViewController from background mode or when app is killed? 从后台打开应用程序时,iOS Swift 3重新加载TableView - iOS swift 3 reload tableview when open app from background 应用程序无法在推送通知时打开,当它在后台时(iOS7) - App won't open on push notification, when it was in background (iOS7) 打开应用或切换场景时背景音乐继续播放 - Background music continue to playing when open an app or change scene
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM