检测用户位置的智能手机应用程序
我很快就会将网站创意扩展到智能手机应用程序。这些应用程序需要知道相关用户的位置。在深入研究这些项目之前,我做了很多研究。我需要为这个想法制作 android、iphone 和 blackberry 应用程序。我的问题是,我是否能够使用这些手机允许的编程功能来跟踪这些用户的位置。这有多合法;这是用户必须同意的事情。基本上我需要知道他们的位置,以验证他们是否在他们所说的地方。任何帮助将不胜感激。
I am going to soon make a website idea expanded to smartphone apps. These apps will need to know the location of the user in question. I am doing a lot of research before I delve into these projects. I will need to make android , iphone, and blackberry apps for this idea. My question is, will I be able track these users location using the programming abilities these phones allow. Also how legal is this is; it something the user has to agree to. Basically I need to know their location to verify if they are in the place they say they are in. Any help would be greatly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
对于 Android,您的应用程序必须列出所有必需的权限。如:
...
安装时,用户会收到通知,并且必须接受您的应用请求的权限才能使用该应用。
With Android your app must outline all of the required permissions. Such as:
<manifest ... >
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
...
</manifest>
On install the user is notified and must accept the permissions that your app requests in order to use the app.
是的,您可以使用移动浏览器中提供的地理位置 API 获取用户位置。不过,他们必须授予您的应用程序使用它的权限。
有关如何使用 API 的教程可以在此处找到:
http://www.html5rocks.com/tutorials/geolocation/trip_meter/
Yes you can get the userlocation using the Geolocation API that is available in mobile browsers. They will have to grant your application permission to use it though.
A tutorial on how to use the API can be found here:
http://www.html5rocks.com/tutorials/geolocation/trip_meter/
是的,这是可能的,是的,这是合法的,是的,你需要用户的许可(至少在 iOS 上)
Yes, it's possible, yes it's legal, yes you will need the user's permission (at least on iOS)