简体   繁体   English

用户在iOS中启动消息传递或邮件发送应用程序时如何获得通知

[英]How do I get notified when user starts messaging or mailing app in iOS

Actually I want to build such a iOS app which will give alert if user start sms application or messaging application when he is driving more than certain speed limit. 实际上,我想构建这样一个iOS应用程序,如果用户在超过特定速度限制时启动短信应用程序消息传递应用程序,它将发出警报。 As I am new in iOS development I don't know whether it is feasible or not? 由于我是iOS开发的新手,所以我不知道这是否可行?

Basically my id: 基本上我的ID:

Q: How do I get notified when user starts messaging app ? 问:当用户启动消息传递应用程序时,如何获得通知?

Due to iOS sandboxing restrictions, you cannot get any information from your app regarding launching or usage of any other apps. 由于iOS沙箱限制,您无法从您的应用程序中获取任何有关启动或使用任何其他应用程序的信息。


The only way to do this would be if you were the developer of both apps. 唯一的方法是两个应用程序的开发者。 In that case you could use an external server to log when each of the apps is launched and then get this information from the converse app. 在这种情况下,您可以使用外部服务器记录启动每个应用程序的时间,然后从相反的应用程序获取此信息。

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

相关问题 当用户在通话中打开我的iPhone应用程序时,如何获得通知? - How do I get notified when a user opens my iPhone app while in a phone call? 如何在iOS中卸载我们的应用程序时收到通知 - How to get notified when our app is uninstalled in iOS 当用户选择允许访问iOS中的Camera时收到通知 - Get notified when the user makes selection for allowing access to Camera in iOS iOS设备空闲,网络停止。 如何获得有关进入“空闲”状态的通知? - iOS device goes idle, network stops. How do i get notified about entering the 'idle' state? iOS - 如何在AFHTTPClient完成所有操作时收到通知 - iOS - How to get notified when AFHTTPClient is done with all operations iTunes或App Store即将更新iOS App时,在运行时收到通知吗? - Get notified at runtime when iOS App is about to being updated by iTunes or App Store? 如何在iOS中收到横幅通知的通知? - How can I be notified of a banner notification in iOS? iOS chat-app:如果用户离开应用程序,我如何通知用户该应用程序将不再运行? - iOS chat-app: How do I notify the user that the app will not function anymore if the user leaves the app? MFMailComposeViewController:视图显示时如何获得通知? - MFMailComposeViewController: how to get notified when view appears? UIView - 如何在加载视图时收到通知? - UIView - How to get notified when the view is loaded?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM