geofencing

Is it possible to have a custom region shape? Core Location

六月ゝ 毕业季﹏ 提交于 2021-02-10 16:25:21
问题 For example at least I want a square/rectangle/ the shape of the road to be my region. 回答1: No it is not. As per the the documentation, currently the only region classes are CLCircularRegion, which is obviously circular, and CLBeaconRegion which is based on the proximity to an iBeacon. It is possible in the future that apple will add support for custom shaped regions but as of iOS 8, this is it. https://developer.apple.com/LIBRARY/ios/documentation/CoreLocation/Reference/CLRegion_class/index

How to add background service in Geofence android

心已入冬 提交于 2021-02-06 08:51:50
问题 I am trying to create a geofence with background service for monitor. The geofence create successfully and work when apps Activity is open but when close the app geofence not work. What should I do now. My code is: public class MapsActivity extends FragmentActivity implements OnMapReadyCallback, GoogleApiClient.ConnectionCallbacks, GoogleApiClient.OnConnectionFailedListener, LocationListener { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);

Continue insert new data in existing array in Firebase Database from Android

故事扮演 提交于 2021-01-29 11:08:47
问题 I'm just starting to learn android studio and I'm working on a location-based project to insert location information into Firebase. I followed tutorial from youtube [https://www.youtube.com/watch?v=CwxdfamaCrk], however in the video only shows insert data from the code which is like this; infectedArea = new ArrayList<>(); infectedArea.add(new LatLng(2.2258162, 102.4497224)); infectedArea.add(new LatLng(2.2252313, 102.4563797)); infectedArea.add(new LatLng(2.2261818, 102.4551067));

Android geofence BroadcastReceiver

我怕爱的太早我们不能终老 提交于 2020-06-12 05:49:06
问题 I have implemented geofences using the GoogleApiClient -> when triggered, a Service connects to the GoogleApiClient and adds several Geofences. Before I had another IntentService registered as "callback" for geofence events. This worked more or less, but only when the app was in foreground. As I want to get geofence events also when the app is in background/closed, I searched a little and moved the callback from an IntentService to a BroadcastReceiver, now I don't even get geofence events

SWIFT: CoreLocation - Ranging Beacons using CLBeaconIdentityConstraint does not range multiple beacons

僤鯓⒐⒋嵵緔 提交于 2020-04-16 02:59:29
问题 So, we have encountered a problem, developing in Swift for iOS 13. When we use the newer method for ranging beacons "startRangingBeacons(satisfying: CLBeaconIdentityConstraint )" it will only range the most recently added beacon, so if there are more than one beacon, we have a problem. When we use the older method, "startRangingBeacons(in: region)," now deprecated but still functional in iOS 13, the app works as expected. Details (using the newer method with "constraints"): App

Xamarin Forms - Get device location every 10 seconds (when app runs in foreground/background)

旧时模样 提交于 2020-04-07 09:27:38
问题 I have created a xamarin forms application. The application should periodically (every 10 sec) get the location of the device (IOS and Android). How can I achieve this? I know there are some libraries for example: Xamarin.Essentials, but I can't decide how many times the location should be taken. It should also be possible to get the local of the device when the xamarin forms application runs in the background (on IOS and Android). Hope someone can help me out with this one. 回答1: For Android

Xamarin Forms - Get device location every 10 seconds (when app runs in foreground/background)

ⅰ亾dé卋堺 提交于 2020-04-07 09:27:23
问题 I have created a xamarin forms application. The application should periodically (every 10 sec) get the location of the device (IOS and Android). How can I achieve this? I know there are some libraries for example: Xamarin.Essentials, but I can't decide how many times the location should be taken. It should also be possible to get the local of the device when the xamarin forms application runs in the background (on IOS and Android). Hope someone can help me out with this one. 回答1: For Android

Xamarin Forms - Get device location every 10 seconds (when app runs in foreground/background)

女生的网名这么多〃 提交于 2020-04-07 09:27:22
问题 I have created a xamarin forms application. The application should periodically (every 10 sec) get the location of the device (IOS and Android). How can I achieve this? I know there are some libraries for example: Xamarin.Essentials, but I can't decide how many times the location should be taken. It should also be possible to get the local of the device when the xamarin forms application runs in the background (on IOS and Android). Hope someone can help me out with this one. 回答1: For Android