Proximity Alert - android

I want to make an application for Android 2.2+, utilizing the GPS. Basically I want to be able to set a specific zone in the app, using google maps.
Example: I am walking to the store, as soon as I am x (variable) meters away from my house I want an alarm going off on my phone.
I googled and saw that you can use proximity alerts to get a notification when you are close to a friends house or something like that. They used specific coordinates for this. I want to be able to draw a line on a map or use a street name, and as soon as i cross that line i want an alarm to go off. If anyone could point me to some tutorial for that part or give some advice, that would be great.

I think you need to map your line in google maps yourself with some formula.
Proximity alerts work with a radius. You might need to set up multiple points with a small radius along your line.
You will get either the entering Intent or the exiting intent.
http://developer.android.com/reference/android/location/LocationManager.html#KEY_PROXIMITY_ENTERING

Related

Android geofences - doubts about the concept and limits

I am trying to understand the geofences concept correctly, in my case for an android app, and I have two questions.
Based on the documentation and examples, I see that I can create a zone based on a longitude, a latitude, and a radius, and I can create alerts when entering or exiting that zone.
so far, everything is correct.
My intention is the following:
I want to create a zone and be notified if another user, also with my app installed, enters the zone I have created.
Is this possible with geofences?
I am reading about it, but it is not clear to me if it is possible.
My second question is: the limit of 100 geofences per app, is it for each application package name, or for each installed application?
"Is this possible with geofences?" yes, just for every user fetch geofences data for somewhere (filessystem, enter by hand, form backend) and set up geofences on this particular piece of android device

Flutter app (dart) Enable orders only in specific area otherwise show message "not yet available to your area"

I need some help/advice/guidance. Actually if you could point me to the correct place.
I need the first app screen to load only if the user is within a specific area (for example a city, or country). i am developing the app with Flutter and dart.
The main.dart shows a loading indicator until the location is fetched (async).
What i would like to do is to be able to define the region this app works.
so if the current location is within the enabled region, the first screen will load. Elsewhere show a message that the app is not yet available in this region.
Any ideas?
Geo-fencing can solve your problem.
send your location to the server-side.
evaluate if that location is within your service area.

How to get create geofence by asking people to walk around

We want to create an android app which allows you to mark your territory by opening the app and walking around. Any thoughts on that? How to turn a walking trail into geofence.

using geofencing in android or ios

I want to know that is it possible to use geofencing feature without any app installed? is there some cloud or something which you can register your geofencing area so anyone with the location on can see your notifications??
I don't know about Android, but for iOS you can use Apple Wallet Passes. You can attach up to 10 locations (geo points) to your passes, and when the device that installed the pass is near one of those locations, the pass will appear on the lock screen.
Relevance Information Displays Passes on the Lock Screen
Passes let your users take some action in the real world, so accessing them needs to be easy and fast. Wallet makes relevant passes immediately accessible by integrating them with the lock screen. To take advantage of this feature, add >information about where and when your pass is relevant. A pass’s relevancy can be based either on the time or the place where the user can actually utilize it. For example, a gym membership is relevant at the gym, while a boarding pass is relevant at the time the flight begins boarding.
Inside the pass, you provide a point in time and points in space. Wallet then determines whether the pass should appear on the lock screen based on these settings. It calculates when the user is close enough to the specified time and locations based on the pass’s style. Don’t try to manipulate the pass’s presence on the lock screen by providing inaccurate relevance information.
Of course, integrating with Apple Wallet requires your own web server, and is not a simple task. However, It doesn't require any app installed, which is what you asked about.

Android Tracking App - check if someone is getting closer or distancing from specific point

I created an android app, which stores user's home location and count distance between home and his/her actual location, in a Service class.
Now I would like to programme feature that would decide based on counted distance, if a user is:
at home
away
getting closer
distancing from home
This should be similar to Google Now, that can predict that you are for example going home. If someone had some examples, I would be sooo grateful
To implement such kinda work, you need to implement GeoFence in your android app.
GeoFence gives you idea about user entered/exited from a defined area. If you set home location as base location and radius to 500m then it gives you entered callback you are within 500m of your home.
When you go away 500m from your home location then it gives you exited callback. To know about whether you are home location then at a interval of few minutes you can poll GPS coordinates then can identify whether you are at your home location.
https://developer.android.com/reference/com/google/android/gms/location/Geofence.html

Categories

Resources