[英]Is it Possible to get last known location of device from other apps in iOS
Im building a location based application, where in i use CLLocation to get users device location. 我建立一个基于位置的应用程序,在这里我使用CLLocation获取用户设备位置。 But my question, Is it possible to get users current/last know location from other apps in device which are already using Location services.
但是我的问题是,是否可以从设备中已经在使用位置服务的其他应用中使用户获得当前/最新的位置信息。 So i can save the battery of iPhone?
这样我可以节省iPhone的电池吗? Just a thought.
只是一个想法。 Not sure security issue?
不确定安全性问题吗? Or is it possible?
还是可能吗?
Thanks in advance 提前致谢
No. Apps are sandboxed. 否。应用程序已沙箱化。 You can not access info from any other app.
您无法从任何其他应用程序访问信息。
One word 一个词
You can't access any info of other apps. 您无法访问其他应用程序的任何信息。
If you want to access any info, you have to jailbreak your iPhone, which Apple never allow. 如果要访问任何信息,则必须越狱iPhone,这是Apple从未允许的。
From Apple, 从苹果公司
Communication Between Apps Follows Specific Pathways 应用之间的通信遵循特定的途径
For security, iOS apps run in a sandbox and have limited interactions with other apps. 为了安全起见,iOS应用程序在沙盒中运行,并且与其他应用程序的交互作用有限。 When you want to communicate with other apps on the system, there are specific ways to do so.
当您想与系统上的其他应用程序通信时,有一些特定的方法可以进行通信。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.