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