(iPhone)在没有警报视图的情况下获取客户的位置?
位置不必非常精确,
获取之前获取的位置就足够了。
几公里的误差是可以的。
我怀疑这违反了政策
但我想问一下也没什么坏处,
如果没有合法的方法在不弹出窗口的情况下获取位置,
需要多长时间才能获得精确到几公里的位置
谢谢
The location doesn't have to be precise,
it is sufficient to get location previously fetched.
and several kilometer error is fine.
I suspect this is violation of policy
But no harm to ask I guess
If there's no legit way of obtaining location without pop up,
how long does it take to get a location with accuracy of several kilometers
Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
来自苹果的文档
如果用户不接受,Apple 不会允许使用 CoreLocation 框架。 此主题您可能感兴趣
From apple's documentation
Apple won't allow usage of CoreLocation framework without user accepting it. This thread might interest you
该警报的存在是有原因的。在没有先询问用户的情况下,您不应该获取他们的位置。
That alert is there for a reason. You shouldn't get a user's location without asking them first.
激活位置 API 将生成警报对话框以允许用户选择加入。这是由操作系统处理的,无法控制。但事实不应该如此。
Activating the Location API will generate the Alert Dialog to allow the user to opt in. This is handled by the Operating System and it not available to control. And it shouldn't be.