简体   繁体   English

iOS和Android上基于位置的操作

[英]Location-based actions on iOS and Android

I am building a private location-based social network, so it would be great if people could be checked in automatically when they arrive. 我正在建立一个基于位置的私人社交网络,因此如果人们到达时可以自动签入,那将是很棒的。 Is there anyway of doing this on iOS? 无论如何在iOS上执行此操作? What about Android? 那么Android呢?

On iPhones, there is an option to have a reminder about something when you arrive in a particular location so I guess the iPhone is capable, but I don't know whether it's a public API. 在iPhone上,有一个选项可以提醒您到达特定位置时发生的事情,因此我认为iPhone可以使用,但我不知道它是否是公共API。

在ios上,您可以在CLLocationManager使用startMonitoringForRegion:它应该检测指定区域的边界线,甚至在应用程序当时未运行的情况下重新启动

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM