Тёмный

Geofencing | The ultimate tutorial | Create and monitor geofences 

Mafia Codes
Подписаться 44 тыс.
Просмотров 92 тыс.
50% 1

In this video you will learn how to #create and #monitor #geofences. We will be using google maps to create a point of interest by using long press on map, this will create a marker with the required radius for the geofence. Then we will be using the latest and best #GeofencingClient to create a geofence. The geofence events will be delivered to our own #BroadcastReceiver where we will handle the triggered #geofence. The geofence events will be delivered by #notifications (using notification channels)
🚀Deploy NodeJs app: zeet.co/r/yourstruly
(One FREE project forever 😘)
In 60 seconds • How to Deploy a NodeJs...
FREE $100 credit @Digital Ocean: m.do.co/c/3208f08b3324
Patreon: / trulymittal
Subscribe: ru-vid.com...
⭐ Kite is a free AI-powered coding assistant that will help you code faster and smarter. The Kite plugin integrates with all the top editors and IDEs to give you smart completions and documentation while you’re typing. I've been using Kite for 6 months and I love it! www.kite.com/get-kite/?...
Geofence(GitHub): github.com/trulymittal/Geofen...
Notifications(GitHub): github.com/trulymittal/Notifi...
BroadcastReceiver(GitHub): github.com/trulymittal/Broadc...
----------------
Tutorials
----------------
Notifications: • Notifications and noti...
Requesting Permissions: • Runtime Permissions An...
BroadcastReceivers: • Broadcast Receivers | ...
Play Services Dependencies: developers.google.com/android...
Geofencing: developer.android.com/trainin...
GoogleMaps Android SDK: developers.google.com/maps/do...
---------------
Relevant Tutorials:
---------------
BroadcastReceivers: • Broadcast Receivers | ...
Requesting Permissions: • Runtime Permissions An...
Getting current Location: • Location | Getting Cur...
Requesting Location updates: • Location | Request Loc...
Adding Google Maps: • Adding Google Maps
Geocoding and Reverse Geocoding: • Geocoders | Geocoding ...
Dragging & Dropping Markers: • Drag & Drop Markers | ...
UserLocation in Maps: • User Location in Maps
Custom CAR marker in android: • Custom Car Marker and ...
---------------
More useful videos
---------------
RecyclerView: • Recycler View with com...
ViewModel: • View Model | Live Data...
#NavigationComponent: • Navigation Component |...
#WorkManager: • Work Manager | Android...
#Retrofit: • RETROFIT Tutorial (v 2...
#CollapsingToolbar Layout: • Collapsing Toolbar Lay...
#BottomNavigation View: • Bottom Navigation View...
KeyframeAnimations: • Keyframe Animations wi...
NightMode: • Night Mode | Dark Mode...
ButterKnife: • Butter Knife | Field a...
SplashScreen: • Splash screen | Launch...
Singletons: • Singletons | What When...
Pull to Refresh in RecyclerView: • Pull to Refresh in Rec...
On item click using Interface in RecyclerView: • RecyclerView item Clic...
Swipe gestures in Recycler View: • Swipe gestures in Recy...
Drag and drop Reorder in Recycler View: • Drag and drop Reorder ...
Filter using #SearchView in RecyclerView: • Filter RecyclerView us...
MultiView RecyclerView: • Multi view RecyclerVie...
---------------
Other useful Playlists
---------------
Android: • Android
#Firebase: • Firebase | Build a Not...
#RestAPI (#NodeJS and MongoDB): • REST API using NodeJS ...
Docker: • Docker
MongoDB: • Learn MongoDB in 50 mi...
Html/Css/Js: • HTML / CSS / JS
Challenges: • Challenges
---------------
What I use
---------------
Mouse: amzn.to/2O9RJtu
Keyboard: amzn.to/2qxajCU
Keyboard 2: amzn.to/2XDWH4X
Monitor: amzn.to/2pDg7dH
Processor: amzn.to/347WWIb
RAM: amzn.to/2QEkUqw
Graphics: amzn.to/33aBrF4
Microphone: amzn.to/2DabdI9
#StayHome #WithMe #yoursTRULY #tutorial #howto #android

Опубликовано:

 

19 апр 2020

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 491   
@AtulGupta-jj7ek
@AtulGupta-jj7ek 4 года назад
Thank you so much Brother🙏 I was waiting for this video
@_a_x_s_
@_a_x_s_ 3 года назад
You are my lifesaver! Thanks for your very detailed tutorial! You deserve a sub!
@singhvishal8613
@singhvishal8613 Год назад
I am able to get Triggers while entering into geofencing plz help if have the solution plz help
@vbcgoogle6439
@vbcgoogle6439 8 месяцев назад
Awesome man Awesome. You effort have to be highly appreciated🎉, thanks a lot for making it so understandable
@kerrykilian9127
@kerrykilian9127 3 года назад
THank you very much! This is exactly what I needed and it wirks without any problem :D :D :D
@pratikshawadibhasme3122
@pratikshawadibhasme3122 3 года назад
Very good explanation.Crisp, Calm and to the point! Thanks!
@mafiacodes
@mafiacodes 3 года назад
Thank you 😊
@singhvishal8613
@singhvishal8613 Год назад
I am able to get Triggers while entering into geofencing plz help if have the solution plz help
@singhvishal8613
@singhvishal8613 Год назад
I am able to get Triggers while entering into geofencing plz help if have the solution plz help
@rian6985
@rian6985 4 года назад
this completes my thesis! thank you very much!!
@ibtishamfahim6962
@ibtishamfahim6962 3 года назад
what was your thesis?
@singhvishal8613
@singhvishal8613 Год назад
I am able to get Triggers while entering into geofencing plz help if have the solution plz help
@MrSaini16
@MrSaini16 3 года назад
True, The ultimate Tutorial. Thank you...👍🏽👍🏽
@sergioferreiro6444
@sergioferreiro6444 3 года назад
Thanks for the tutorial, just a quick tip for new Versions you need to add also permissions for ACCESS_BACKGROUND_LOCATION if not you will receive a 104 error saying that you do not have enough permissions. Very useful this tutorial, thanks for that.
@mafiacodes
@mafiacodes 3 года назад
Thanks for the tip!
@singhvishal8613
@singhvishal8613 Год назад
I am able to get Triggers while entering into geofencing plz help if have the solution plz help
@sakshinarayanaswamy1273
@sakshinarayanaswamy1273 3 года назад
Thank you so much for the video Wonderful explanation
@bereket_mekonnen
@bereket_mekonnen 3 года назад
wow, thank you very much for making this video. you are awsome👍🏽👍🏽👍🏽👍🏽👍🏽
@mafiacodes
@mafiacodes 3 года назад
Glad you liked it!
@abdelrahmanhussein5299
@abdelrahmanhussein5299 3 года назад
Very Great Explanation ! Really thx u
@prakhashrao7957
@prakhashrao7957 3 года назад
thank you so much!! you are amazing
@MangalamsKitchen
@MangalamsKitchen 3 года назад
Excellent bro!
@GintautasaN
@GintautasaN 3 года назад
Thank you for tutorial. Very helpful.
@singhvishal8613
@singhvishal8613 Год назад
I am able to get Triggers while entering into geofencing plz help if have the solution plz help
@BABATECHNOPEDIA
@BABATECHNOPEDIA 4 года назад
Love you 3000! In 4-5 days my final year project will be completed. and Credit goes to Yours truly Coding inflow EMDTV
@mubeenrizvi256
@mubeenrizvi256 4 года назад
what was your project, i have some problems, maybe you can help.
@jannaikodeyashwanthkumar8121
@jannaikodeyashwanthkumar8121 4 года назад
Can you please send the code part of this tutorial ill give ID mail me can u? Urgent part of project . Need your help buddy reply
@mafiacodes
@mafiacodes 4 года назад
GitHub link already in description
@jannaikodeyashwanthkumar8121
@jannaikodeyashwanthkumar8121 4 года назад
@@mafiacodes sir I need the app to run in background and get notification when they enter the fence
@h.r.60
@h.r.60 4 года назад
You're amazing 👏
@ALEXAN03R
@ALEXAN03R 4 года назад
thanks just the tutorial i need now
@afreensworld786
@afreensworld786 3 года назад
Truly nice described tutorial; Great Job
@singhvishal8613
@singhvishal8613 Год назад
I am able to get Triggers while entering into geofencing plz help if have the solution plz help
@dopis9478
@dopis9478 3 года назад
Thank you so much brooo. This tutorial very helpful Subscribed!!!
@mafiacodes
@mafiacodes 3 года назад
Thank you
@dopis9478
@dopis9478 3 года назад
@@mafiacodes how can i access this map activity from main activity or any other activity, which means the map activity is not the launcher activity. changed at the androidmanifest.xml but didnt work, im a bit confused about this one
@morfeoraikonen
@morfeoraikonen 3 года назад
Bro, you are amazing great job, that helps me a lot
@mafiacodes
@mafiacodes 3 года назад
Glad to hear that!
@mafiacodes
@mafiacodes 3 года назад
What problem?
@aarushmahajan8124
@aarushmahajan8124 3 года назад
you got my back in a competition thank you alot
@singhvishal8613
@singhvishal8613 Год назад
I am able to get Triggers while entering into geofencing plz help if have the solution plz help
@parascaddplaystore1676
@parascaddplaystore1676 11 месяцев назад
@@singhvishal8613 did u got soln
@singhvishal8613
@singhvishal8613 11 месяцев назад
Yes@@parascaddplaystore1676
@gerdsfargen6687
@gerdsfargen6687 5 месяцев назад
@singhvishal8613 ok but do you mean " I am.NOT able to get triggers" ...in your question?
@sumitmundlik7496
@sumitmundlik7496 4 года назад
Thanks bro This was the best explaining video ever
@mafiacodes
@mafiacodes 4 года назад
😊
@jannaikodeyashwanthkumar8121
@jannaikodeyashwanthkumar8121 4 года назад
Can you please send the code part of this tutorial ill give ID mail me can u?
@101_bhautiksavaliya4
@101_bhautiksavaliya4 3 года назад
Super clear and very very helpful.. Thanks..
@singhvishal8613
@singhvishal8613 Год назад
I am able to get Triggers while entering into geofencing plz help if have the solution plz help
@michaelmay5146
@michaelmay5146 3 года назад
Great Video. Thank you!
@mafiacodes
@mafiacodes 3 года назад
Glad you enjoyed it!
@salaheddinlahmer8874
@salaheddinlahmer8874 Год назад
شكرا لك جزيل اشكر على مجهودك. thank you extremely for your efforts
@gregoireg9600
@gregoireg9600 3 года назад
Thank you so much bro
@michaelappiah-kubi2829
@michaelappiah-kubi2829 6 месяцев назад
Wow thanks!
@muhammadrabnawaz5235
@muhammadrabnawaz5235 Год назад
Great Tutorial sir🙂🤩
@roysegev6172
@roysegev6172 3 года назад
thank u man!
@CyberAgency10
@CyberAgency10 Год назад
Sir, where do you start in geofencing, what is the fast setup of it? Please guide
@jeremyseveric9392
@jeremyseveric9392 3 года назад
Awesome video 👌
@mafiacodes
@mafiacodes 3 года назад
Thank you! Cheers!
@laughandbehealthy356
@laughandbehealthy356 Год назад
thanks for tutorial. unfortunately notification stopped receiving for all transition, may I know how to fix the issue?
@saiteja9879
@saiteja9879 Год назад
can you please make video on the turn to turn navigation in our app from source to destination.
@Mardiana-qb5ms
@Mardiana-qb5ms Год назад
hi sir, thank you so much for the tutorial. but how to create geofence run in the background without function longclick?
@eishp
@eishp 4 года назад
Hello. Thank you for the tutorial. I would like to ask if there is a way I can create the geofence without using google maps? As I would use google maps only on another phone to visualise the geofence when a user transitions into or out of the geofence
@mafiacodes
@mafiacodes 4 года назад
Yes for sure, maps is used only to get latitude longitude where the user clicked, the only thing required is location services using the location dependency.
@singhvishal8613
@singhvishal8613 Год назад
I am able to get Triggers while entering into geofencing plz help if have the solution plz help
@GeeBeisH
@GeeBeisH 2 года назад
Great Tutorial. Is there any way I can set multiple GeoFences from an API server?
@ALEXAN03R
@ALEXAN03R 4 года назад
i love ur video
@EchoMirage72
@EchoMirage72 Год назад
I have never coded, but I do play Warhammer 40k, and wonder if this could be applied to terrain features on wargamming maps? Also, instead of a notification being sent to your cellphone if it could be used to send a signal to an LCD on the terrain feature that lights up whenever model/s are dwelling within that terrain feature to ensure rules are being applies correctly.
@mafiacodes
@mafiacodes Год назад
Im sure it can be done...with a bit of coding and mapping the maps.
@singhvishal8613
@singhvishal8613 Год назад
I am able to get Triggers while entering into geofencing plz help if have the solution plz help
@neerajverma9226
@neerajverma9226 4 года назад
if the location is turned on how can i turn on it back??? from app only??
@faiyazahemad3665
@faiyazahemad3665 3 года назад
Hey bro how did u change the source code color
@jaxs4999
@jaxs4999 Год назад
how do you integrate an sms where user's gonna send an sms of his/her current location?
@amimaimy
@amimaimy 2 года назад
is there any tutorial of this geofence in Flutter?
@goharamin820
@goharamin820 4 года назад
thank you sir g
@mafiacodes
@mafiacodes 4 года назад
Subscribe like share
@Arunkumar-xf1hd
@Arunkumar-xf1hd 2 года назад
by watching others and yours video i learnt a lot and now i am placed in company as a android developer . Thank you so much
@mafiacodes
@mafiacodes 2 года назад
Glad I could help.
@ruphaeldereuck921
@ruphaeldereuck921 2 года назад
thank you for the video, but which part was for the creation of the route? the route from pin A to pin B
@singhvishal8613
@singhvishal8613 Год назад
I am able to get Triggers while entering into geofencing plz help if have the solution plz help
@dennisrufi143
@dennisrufi143 4 года назад
Awesome tutorials. I loved it. Request: Can you make a complete series on android MVVM using kotlin with Networking with Retrofit, Dependency Injection , Coroutines, RecyclerView?
@singhvishal8613
@singhvishal8613 Год назад
I am able to get Triggers while entering into geofencing plz help if have the solution plz help
@pankajtripathi3638
@pankajtripathi3638 2 года назад
Hi , I used your similar demo but not receiving GeoFence Notifications
@tybscitchaitanyagorule4954
@tybscitchaitanyagorule4954 Год назад
I get enter,dwelling and exit location one after another immediately even if i dont exit locaiton
@renaldiprimaswara5786
@renaldiprimaswara5786 Год назад
How to click and give the marker like you did in this video, nothing happened too, please help sir
@bprogrammer.official
@bprogrammer.official 2 года назад
Hi. ! I added more than one Geofence by for loop but it didn't work it works only for single geofence . Can you please help me to solve this issue... ?
@roysegev6172
@roysegev6172 3 года назад
is there a way that the nnotification will be sent to another device?
@AtulGupta-jj7ek
@AtulGupta-jj7ek 4 года назад
Sir, I want to add more than one geofence, so do we need to save the geofences(i.e. Lat and Long of geofences) somewhere like firebase or in the app itself ?
@mafiacodes
@mafiacodes 4 года назад
No you do not need to save geofences, the system saves it, but if u want to show marker and circle then you can save it in a database. Though you need to re-register your geofences in some cases like when the device restarts and for that create a Broadcast receiver to receive boot completed event and then register ur geofences from there.
@you3667
@you3667 3 года назад
if you solve the problem, can you share ur code? I also need more than one geofence lol
@mafiacodes
@mafiacodes 3 года назад
U can add upto 100 fences
@kerrykilian9127
@kerrykilian9127 3 года назад
you can use lists and do that: list.forEach(coordinate -> tryAddingGeofence(coordinate));
@kerrykilian9127
@kerrykilian9127 3 года назад
@@you3667 you can use lists and do that: list.forEach(coordinate -> tryAddingGeofence(coordinate));
@Sean-pe3sl
@Sean-pe3sl 3 года назад
From what I know, this application is focusing on the device current location to trigger the geofence. What if I have a marker that is manually added to the google map, how I can focus on that marker's location(lat lng), if the marker location changed, and entered the geofence, only it will trigger the notification?
@singhvishal8613
@singhvishal8613 Год назад
I am able to get Triggers while entering into geofencing plz help if have the solution plz help
@remusandrei7631
@remusandrei7631 4 года назад
Hello, how can we see the notifications if we want to use it on lower api's ? I've tried this on API 26 and It doesn't show anything.
@shrijanmaram7939
@shrijanmaram7939 3 года назад
Mine had the same problem. I tried it on of my physical devices but the notifications still aren't showing
@harshgaurav1568
@harshgaurav1568 4 года назад
Hey, its a good tutorial ! Query : In the notification being sent out can I ask for User permission to initiate auto-download of an App from Play Store?
@mafiacodes
@mafiacodes 4 года назад
U can send the link I guess
@singhvishal8613
@singhvishal8613 Год назад
I am able to get Triggers while entering into geofencing plz help if have the solution plz help
@maheshjipandey
@maheshjipandey 3 года назад
Hello sir, how can we calculate the users dwell time inside geofence area and how to calculate the number of entry by each user.
@singhvishal8613
@singhvishal8613 Год назад
I am able to get Triggers while entering into geofencing plz help if have the solution plz help
@CarlsuuuDesuu0723
@CarlsuuuDesuu0723 Год назад
hi can i have a question sir?? is it possible i can connect the program to an arduino because our research study is real-time GPS tracking with Geofencing system sooo can i connect the arduino to the program and whenever the device crosses the virtual boundary it send an alert to my mobile?
@mafiacodes
@mafiacodes Год назад
Yes you can trigger notifications from arduino using an external api
@isleburgjasonjoelboyd
@isleburgjasonjoelboyd Год назад
How to do user matching by geolocation with this for a Tinder clone
@androidpc9656
@androidpc9656 11 месяцев назад
hi very thanks for a detailed video I tried this on Android 13 it only works if i open google map (any app that uses location) is that the default behaviour?
@mafiacodes
@mafiacodes 11 месяцев назад
Yes, it’s the default behaviour on emulators since in real device some app/services must have requested location
@debu113
@debu113 7 месяцев назад
did you develop the same in flutter
@fotosubiancoquaderno.9150
@fotosubiancoquaderno.9150 Год назад
Hi i have a big problem with macrodroid geofencer i hope you help my. Geofencing is a feature that allows you to set up a virtual boundary around a specific location, and then configure actions to take place automatically when a device enters or exits that boundary. It is possible that you may be experiencing an issue with the geofencing feature in the MacroDroid app on your Xiaomi Redmi Note 8 smartphone. I am unable to resolve this problem with MacroDroid's geofence function. I have also tried using geofences and not receiving any triggers when I cross the borders. I have used both options to leave or not leave a known area. I have checked the location permissions for MacroDroid and it seemed fine. I have no idea what else I can try for geofence problem resolution. There is nothing in the system log that says I have crossed a border. Some possible causes for this issue include: Incorrect location settings on your device: Make sure that your device's location services are enabled, and that the app has permission to access your location. Issues with the app itself: Sometimes, bugs or compatibility issues can prevent an app from functioning properly. Check for updates to the app, or contact the developer for support. Third-party interference: Some other apps or services running on your device could be interfering with the geofencing feature. You can try uninstalling any apps that you think might be causing the problem, or disable any battery optimization settings that are enabled for MacroDroid. It can also be possible that the MacroDroid is not compatible with your Xiaomi device or your device's firmware, you can look for other apps that provides similar functionality or look for an official statement by the developer. POSSIBLE SOLUTION Task killer apps, like the one you mentioned, Kill My App, are designed to close background apps in order to free up memory and improve device performance. While this can be helpful in some cases, it's not a guaranteed solution for issues with geofencing, and it may even make the problem worse. I am waiting the realy solution about the users thanks a lot avchd
@gouravkamboj3191
@gouravkamboj3191 2 года назад
thankyou so much for the tutorial my app is working accurate until the app is killed in background kindly help how Can i solve this Actually I am taking data to firebase when geofence is triggered it working fine but when app is in background or killed geofence is triggered please help me to solve this.....its so urgent 🙏🙏🙏
@bhavanat2989
@bhavanat2989 3 года назад
Hi, I am not getting push notifications when the app is force closed on device (It works perfectly fine on emulator as you have shown in video.) I am using Mock Locations app to travel via route and playing gpx route file via Mock locations app. Does this mock locations app affecting in showing notifications when the app killed ? It shows all notifications while trvelling route via mock locations app if I am into my app or my app is in background. Please help.
@Lakpriya
@Lakpriya 2 года назад
Did you fix the issue? I also tried mock location, i was able to get notifications fines. But rebooting all geofences dispenser. I think we have to re register geo fence after rebooting.
@nobyerali
@nobyerali 4 года назад
do we need to write code in background service for getting geofence notification from background?
@mafiacodes
@mafiacodes 4 года назад
No, everything is explained in video, watch the entire video
@HARMANSINGH-gp2wj
@HARMANSINGH-gp2wj 4 года назад
if i close my app then does our geofence broadcast receiver receive the triggering geofence in background and show notification ??
@mafiacodes
@mafiacodes 4 года назад
Yes
@djpj0001
@djpj0001 3 года назад
@yoursTRULY great tutorial thank you. If you could help me with this question please be much appreciated, so i have a button that removes the geofence but cant seem to get it right. I want the user to be able to remove it completely on button click so they stop receiving updates when in location.
@mafiacodes
@mafiacodes 3 года назад
Hi, there is a method to remove geofence by identifier, u can use that.
@djpj0001
@djpj0001 3 года назад
@@mafiacodes i got it sorted, thank you. Great work keep it up 👍
@singhvishal8613
@singhvishal8613 Год назад
I am able to get Triggers while entering into geofencing plz help if have the solution plz help
@gollaraghu7724
@gollaraghu7724 4 года назад
Nice tutorial. I have a query. When we go to few locations(super Market/ Movie) we will get an notification from maps application..I want to know who set up the geofencing to that place and one more thing can I trigger that with the above code
@mafiacodes
@mafiacodes 4 года назад
If u get auto notification then that’s the android and google thing, with this code u can use as u want
@singhvishal8613
@singhvishal8613 Год назад
I am able to get Triggers while entering into geofencing plz help if have the solution plz help
@IRezis7z
@IRezis7z 4 года назад
How would you save the geofence location which the user marked? I want the user to select a location which then saves it and it can be saved to firebase?
@singhvishal8613
@singhvishal8613 Год назад
I am able to get Triggers while entering into geofencing plz help if have the solution plz help
@rishabhgupta2741
@rishabhgupta2741 3 года назад
Nice tutorial. But how do i get the updated data(user is inside the geofence area or not) into my Activity. Actually i want to do some calculation only if the user is inside the geofence ares in the Activity but cannot figure out how it will be done.How do i get the data inside mt Activity. Kindly help me with this scenario. Thank you.
@singhvishal8613
@singhvishal8613 Год назад
I am able to get Triggers while entering into geofencing plz help if have the solution plz help
@vasilistsirm5239
@vasilistsirm5239 Год назад
Hi thanks for the turtorial, i have a question regarding the addGeofence method. Although i have implemented it exactly as you show on geofencingClient.addGeofences(geofencingRequest, pendingIntent) it shows error : Call requires permission which may be rejected by user: code should explicitly check to see if permission is available (with checkPermission) or explicitly handle a potential SecurityException. Do you have any possible solutions?
@mafiacodes
@mafiacodes Год назад
Yeah, watch this video, though this is for location requests, but the logic would remain same for accessing location: Also added in the timestamp for you to start the video from: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-4eWoXPSpA5Y.html
@saadahmed3581
@saadahmed3581 2 года назад
Hey bro, can you tell me how did you installed the operator mono font in android studio. I also want it and tried a lot but I was not able to do it. Appreciating your help. Thank you
@singhvishal8613
@singhvishal8613 Год назад
I am able to get Triggers while entering into geofencing plz help if have the solution plz help
@bhavanat2989
@bhavanat2989 3 года назад
Hi .. Thank you for this tutorial.. its the best I found till date..!! Can you help me with NotificationHelper class in Kotlin ? Thank you once again!!
@rogercolque
@rogercolque 3 года назад
u can paste the java code. Android studio helps u to convert it to kolin
@Saikat_Mukherjee
@Saikat_Mukherjee 2 года назад
sir when whenever i exit from the geofence I'm not getting the Toast or notification of exiting , can you help me
@darksidebidi
@darksidebidi 3 года назад
Hello yoursTruly, what if i have more than one geofence active? i'm applying the geofences to multiple churches, using the nearbyplaces api, but i can only get notifications on the last place that it finds. how can i make the geofence triggers work on every geofence that i have active? thank you, looking forward for your reply
@rogercolque
@rogercolque 3 года назад
in geofenceHelper u coud use method _.addGeofences_ instead of .addGeofence. this received a list and this could help u. but i have no idea of how remove only one geofence becaouse the remove method remove all geofences T_T
@bprogrammer.official
@bprogrammer.official 2 года назад
Hi! I face the same problem.. Did you fix your issue?
@darksidebidi
@darksidebidi 2 года назад
@@bprogrammer.official Hi! I didn’t, had to change plans on how I did it. What I did was, instead of showing every single church available on the map with the geofence active, I put I break inside a for loop or something like that so that when i search churches around me it will only show me one (the first on the list that was closest to me) and when I got inside the radius I did an action where it would mark the church as completed and if I searched again for churches near me, it would show me a different one because the one that was closest to me was already done.
@prasanthsanjeevi2563
@prasanthsanjeevi2563 4 года назад
Hiii I have of arraylist of latitude and longitude from that list how to show which is nearest in recyclerview from current location?
@mafiacodes
@mafiacodes 4 года назад
Calculate the distance between each of latlng and current location using the distance matrix api by google. Though it is paid after a certain calculations. Then u can sort ur array list in ascending order.
@prasanthsanjeevi2563
@prasanthsanjeevi2563 4 года назад
@@mafiacodes is this easy concept are difficult one pls tell me
@mafiacodes
@mafiacodes 4 года назад
It’s easy just go through the docs
@rockymalobago4075
@rockymalobago4075 9 месяцев назад
Hello sir. Can you make a tutorial , if I upload my product in firebase database., and when I want to retrieve it will show using firebase database path. But want I really want is. It will only show the item in recycview within certain distance. Using geofencing.,
@harshavardhansingireddy9594
@harshavardhansingireddy9594 3 года назад
Hi, your explanation with code is Awesome. Can you please tell me how to add multiple geofences?
@mafiacodes
@mafiacodes 3 года назад
The same way
@kerrykilian9127
@kerrykilian9127 3 года назад
you need lists and then you can say: list.forEach(coordinate -> tryAddingGeofence(coordinate))
@rogercolque
@rogercolque 4 года назад
17:36 shourcut logt
@sarthakshah33
@sarthakshah33 7 месяцев назад
The app just crashes after I long press on the map (after I give permission for background location access and after it shows "you can add geofences now")....PLS HELPPP !!!!
@lourdescarrera1509
@lourdescarrera1509 4 года назад
Hi Great video!! I have a question hope you can help. I would like to know if there's a way to show only markers based on "My position"only if I am inside their polygons or circles. Maybe a query from a list of markers... please
@mafiacodes
@mafiacodes 4 года назад
Just calculate the marker position from the Center of fence and if it’s less than radius of fence then show else don’t show. Subscribe like share
@singhvishal8613
@singhvishal8613 Год назад
I am able to get Triggers while entering into geofencing plz help if have the solution plz help
@Personal-ig1of
@Personal-ig1of 2 года назад
where is the link that i can get the code
@alexsanderhendrawijaya7896
@alexsanderhendrawijaya7896 2 года назад
Hi thanks for the tutorial, I would like to know how to change message Toast on BroadcastReciever based on geofence id, for example i have a lot of geofences and with different information.
@singhvishal8613
@singhvishal8613 Год назад
I am able to get Triggers while entering into geofencing plz help if have the solution plz help
@travelwithhasnat
@travelwithhasnat Год назад
Hi, Thanks a lot for such a great tutorial. I am facing a problem. It works fine when it's in foreground and it detects all 3 transitions. However when the app is in the background, it doesn't detect the transitions. If I open some other location apps like google maps then it works fine and detects transitions even in the background. Can you please help me figure out what the problem is?
@singhvishal8613
@singhvishal8613 Год назад
I am able to get Triggers while entering into geofencing plz help if have the solution plz help
@travelwithhasnat
@travelwithhasnat Год назад
@@singhvishal8613 Yes, I was able to fix this by launching a foreground service from within my geofencing app on app launch. The foreground service simply pings for location updates. That way I get geofencing event triggers even when its in the background.
@singhvishal8613
@singhvishal8613 Год назад
@@travelwithhasnat Can u share your github repository of code for my understanding Is anything special you have done while you are fallowing this tutorial because I was stuck when my use enter into geofencing I am not getting any message as such geofencing triggered...
@PraneshR-yz5gt
@PraneshR-yz5gt 10 месяцев назад
@@singhvishal8613 same problem, Did u get any soluttion?
@Z-trantia
@Z-trantia 4 месяца назад
how can I implement this in flutter?
@petlover7444
@petlover7444 2 года назад
Geofence always move position when apk restart, how to fix it. Try in xiaomi 5A
@martinperumala1522
@martinperumala1522 2 года назад
great explanation style..i did follow this tutorial but i used kotlin...i was able to add geofences.. but broadcast receiver onreceive method is not trigerred when marker enters geofence...pls help..dont know where i am wrong..
@shravyaadapa1275
@shravyaadapa1275 2 года назад
Mine also same problem
@singhvishal8613
@singhvishal8613 Год назад
​ @Shravya Adapa Same Problem any soln mila plz help I am also stuck out there
@singhvishal8613
@singhvishal8613 Год назад
​@@shravyaadapa1275 Same Problem any soln mila plz help I am also stuck out there
@jakerussell5484
@jakerussell5484 3 года назад
Thanks for the tutorial! I'm having an issue where Google Maps does need to be open on a real device for this to work as well?
@mafiacodes
@mafiacodes 3 года назад
Nopes
@jakerussell5484
@jakerussell5484 3 года назад
@@mafiacodes I followed your guide, and when testing on a real device, Google Maps (or any other app that actively uses location) needs to be open for it to work
@madalenasasportes5190
@madalenasasportes5190 3 года назад
I am having the same issue. Were you able to fix it?
@jakerussell5484
@jakerussell5484 3 года назад
@@madalenasasportes5190 Unfortunately not, no. I think it may be due to changes in the new Android SDK :(
@fiberwaves1318
@fiberwaves1318 3 года назад
Is it possible to track someone with a gfense
@yaminisharma6867
@yaminisharma6867 4 года назад
Hi, I want to create an app which requires to constantly fetch and update the user's location whenever he enters the geofence area and stop as soon as he exits...and start again when he enters. So can i use this Geofencing api with Fusedlocationproviderclient to achieve this?
@mafiacodes
@mafiacodes 4 года назад
Yes for sure
@yaminisharma6867
@yaminisharma6867 4 года назад
Okay, thankyou :) Also, which emulator do you use?
@mafiacodes
@mafiacodes 4 года назад
Google pixel 2
@mhjjll6294
@mhjjll6294 5 месяцев назад
Sir, can you teach how to use this in flutter ?
@normalGuy9667
@normalGuy9667 Год назад
Great tutorial, I followed it to the letter. In the mapsActivity, in addGeofence method, it keeps getting to addOnFailureListener, never to addOnSuccessListener, any guess why this can happen? (errorMessage = 1004)
@mafiacodes
@mafiacodes Год назад
Permissions missing developers.google.com/android/reference/com/google/android/gms/location/GeofenceStatusCodes
@Friction_Op
@Friction_Op 3 года назад
Sir I have a doubt in this when i added Geofence andwhen i removed the app from background then all the geofence which i added where gone from map please help me with this,basically user can store multiple geofences and if he wants to delete it than only geofence should be removed..
@mafiacodes
@mafiacodes 3 года назад
U need to store them in db, though u need not register it again
@Friction_Op
@Friction_Op 3 года назад
@@mafiacodes Thank you sir if you would make another video for this than it would be great for us who are in learning phase
@mattykxd
@mattykxd 3 года назад
Hello. Is there any possible way for me to make an app work only if it is in a certain geofence?
@mafiacodes
@mafiacodes 3 года назад
Yes why not
@DShree28
@DShree28 3 года назад
I am making one location based reminder app for that I have some ques how can we make Different ID's for each geofence ? and I am showing that reminders in recycler view so if I want to delete any particular reminder how can I remove that geofence ?
@mafiacodes
@mafiacodes 3 года назад
use geofence id to delete
@DShree28
@DShree28 3 года назад
@@mafiacodes and how to assign different id to each geofence ? You have used hardcoded id
@mafiacodes
@mafiacodes 3 года назад
Generate one using any dependency
@DShree28
@DShree28 3 года назад
@@mafiacodes Ok thank you for your replys
@slymanyonga7226
@slymanyonga7226 2 года назад
So how do I go about removing geofences?, google allows only 100 so I want to be able to clear some geofences and add new ones. Like totally delete a geofence not override it using the same GeofenceID like you did. How do I write the method in a similar way you wrote your addGeofence?
@singhvishal8613
@singhvishal8613 Год назад
I am able to get Triggers while entering into geofencing plz help if have the solution plz help
@kishor8394
@kishor8394 2 года назад
Sir please help me. I didn't get google_maps_api.xml file What to do now???
@HARMANSINGH-gp2wj
@HARMANSINGH-gp2wj 4 года назад
does geofences always trigger when we kill the app ? does geofences remian registered in our system even when we close our app
@mafiacodes
@mafiacodes 4 года назад
Yes
@Akash_Lonkar
@Akash_Lonkar 4 года назад
When I'm running this one it will ask for location permission but doesn't actually turn on the location service. so the get current location button doesn't work. and in api29 it doesn't ask for background location permission.
@mafiacodes
@mafiacodes 4 года назад
Location permission is one thing and turning on location services of device is another, if u want to turn location services of the device then watch this video where I have explained how to turn on location services if they were not enabled: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-4eWoXPSpA5Y.html
@Akash_Lonkar
@Akash_Lonkar 4 года назад
@@mafiacodes Thank you for your reply.
@reema7892
@reema7892 7 месяцев назад
How i can link this to flutter?
@gennadiiianchev4770
@gennadiiianchev4770 2 года назад
Hi, great video, but it doesn't work in the background on real devices, do you know why?
@renaldiprimaswara5786
@renaldiprimaswara5786 Год назад
i got the same problem, why? someone can help?
Далее
What are Geofences? - All about Geofencing in 5 min
4:46
Counter-Strike 2 - Новый кс. Cтарый я
13:10
Broadcast Receivers | Full Explanation
21:34
Просмотров 22 тыс.
What is Geofencing and How Does it Works?
1:45
Просмотров 34 тыс.
Arduino Geo Fencing with SIM800L and GPS Module
7:01
Learn Web Design For Beginners - Full Course (2024)
3:07:31
Building the Ultimate Nike App in React Native & Redux
3:33:55