简体   繁体   English

有没有办法知道哪个应用程序打开了我的 iOS 应用程序?

[英]Is there a way to know which app opened my iOS app?

Let's say I have a news iOS app with universal link support, and I need to know, for my stats, from where that interaction originates.假设我有一个具有通用链接支持的新闻 iOS 应用程序,对于我的统计数据,我需要知道该交互的来源。 If I were on the web I could know if the user came from eg Google, Facebook or any other website.如果我在 web 上,我可以知道用户是否来自例如 Google、Facebook 或任何其他网站。

Is there a way to know which app brought the traffic to mine, each time it is not opened directly by the user?有没有办法知道每次不是用户直接打开的应用程序给我带来了流量? Eg if I clicked on a link in Facebook, and user has my app installed on his iPhone, the my app will get called instead of Safari: is there for me a way to know that Facebook is the source of that traffic?例如,如果我单击 Facebook 中的一个链接,并且用户在他的 iPhone 上安装了我的应用程序,我的应用程序将被调用而不是 Safari:我有办法知道该流量的来源是 ZD85544FCE402C7A20A96A4807ZED 吗?

I know of referrerURL available since iOS 11, but it is not quite the same — actually, we would like to know what is the originating app precisely for those cases where referrerURL is nil.我知道自 iOS 11 以来就有可用的referrerURL ,但它并不完全相同——实际上,我们想知道对于那些referrerURL为 nil 的情况,原始应用程序是什么。

Thanks谢谢

I didn't test it actually but you should be able to listen to:我实际上没有测试它,但你应该能够听到:

class let didFinishLaunchingNotification: NSNotification.Name

notification and inspect the userInfo dictionary to find sourceApplication .通知并检查userInfo字典以查找sourceApplication

Reference 参考

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 iOS Javascript:如何知道终止后是否打开我的应用程序? - iOS Javascript: How to know if my app is opened after termination? iOS:有没有办法知道当前的iOS用户是否曾经使用过我的应用 - iOS: Is there a way to know if the current user of iOS ever used my app 如何知道哪个用户登录了我的ios应用 - how to know which user has logged in to my ios app 有没有办法知道我的iOS应用程序被隐私设置更改杀死? - Is there a way to know my iOS app was killed by a privacy setting change? iOS中的Google Analytics(分析),如何知道是否使用应用程序打开了我的网站页面? - Google Analytics in iOS, How do I know if a page of my website was opened using an app? 有没有办法知道我的 iPhone 应用程序没有使用 swift 打开多久? - Is there any way to know how long my iPhone app wasn't opened using swift? iOS:使用UIDocumentInteractionController打开文件,并知道哪个应用程序打开了文件 - iOS: open file with UIDocumentInteractionController and know what app opened the file 有没有办法拦截URL,以便在我的应用程序中打开它们 - Is there a way to intercept URLs so they are opened in my app 对于iOS开发人员,对于给定的文件类型,我的应用程序可能如何知道,哪个其他应用程序可以打开它 - for iOS dev, how my app might know, for a given file type, which other app could open it 哪种方法可以在iPod或iPhone中测试我的ios应用程序? - which is the better way to test my ios app in iPod or in iPhone?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM