Background Geolocation Tracking in React Native and mocking locations in Android and iOS simulator.

  Рет қаралды 870

Gautham Vijay

Gautham Vijay

Күн бұрын

In this video, I have discussed how you can get the location of the user with help of React Native's Geolocation API and found a lot of insights on it which I am sharing here.
I have discussed the following concepts on how you can,
1. Mock location in both Android emulator and iOS simulator.
2. How you can draw PolyLines on the map with react native maps' PolyLines when the user moves.
3. I also discussed differences between precise and approximate location permissions in android.
4. How you can get "Always On" Location permission in both android and iOS and the limitiations within the app.
Apps like Strava use this logic to get the user location and make those beautiful maps in mapbox.
If you want to make features like these in your application do contact me or if you want more indepth guide do let me know.
If you have any other queries, please leave it in the comments or contact me via email or Twitter (X).
Here is my Twitter (X) profile: x.com/gautham_...

Пікірлер: 17
@gauthamvijay
@gauthamvijay 2 ай бұрын
Do let me know if the technical content I have made here is valuable to you. You can contact me via email for more queries or comment here!
@omerdemir9716
@omerdemir9716 Ай бұрын
We need updated content about that. So if you share part of this code and make a video it will be best react native video bro
@omerdemir9716
@omerdemir9716 Ай бұрын
- Which pakcages did you use? - How did you use? - How to make animations?
@gauthamvijay
@gauthamvijay Ай бұрын
@@omerdemir9716 1. I used this package for the geolocation tracking - react-native-community/geolocation 2. I used it where when the user starts their trip, they will take on the button and the geolocation tracking starts. 3. I made it with react-native-maps polyline and animated markers, where when the location changes, the polylines and markers move. Do let me know if it helped you out.
@gauthamvijay
@gauthamvijay Ай бұрын
@@omerdemir9716 Yeah I will try to do. I am not getting a lot of views or likes or subscribes which is demotivating. So I will do it when I get free time in the weekends. If i get more traction, I will make a full fledged videos as it requires even more advanced implementation as this video itself is an advanced topic.
@omerdemir9716
@omerdemir9716 Ай бұрын
@@gauthamvijay you right i hope it will
@FarazAhmed-rd3if
@FarazAhmed-rd3if 7 күн бұрын
Good stuff, please come up with more stuff like that...
@gauthamvijay
@gauthamvijay 7 күн бұрын
Thanks for the motivation faraz.♥️
@ali-react-native
@ali-react-native Ай бұрын
Yes we need this feature in react native also update location to backend while in background or in foreground BTW thanks for this intro
@gauthamvijay
@gauthamvijay Ай бұрын
I have finished the function you have said here. I will try to upload it when i get free time♥️ Thanks for the support. Please do like share and subscribe❤️
@chetansharma8793
@chetansharma8793 22 күн бұрын
Please upload a video explaining how you made it. That will be very helpful. Thanks for this video. I am waiting for a complete tutorial about how to build this app. I hope you upload it soon.
@gauthamvijay
@gauthamvijay 22 күн бұрын
I will definitely do it when the time comes chetan. The main issue is I have to go out with my Android and iPhone and check if background is working in a real scenario. If some projects come up and it has this feature, I will try to do a full fledged video on this which will cover each and every concept where I will explain how Swiggy/Zomato use real time tracking of food delivery agents in React Native with backend support in PostgresSQL with real time data for both delivery agent and users. ( I still have to work and research more on this to make it work ). The amount of effort it will take to do it is astronomical as its very advanced topic. I have about 50+ subscribers and if it increases more, I will do it. Thanks for the support. Please do like share and subscribe so i will get the motivation to do it.
@chetansharma8793
@chetansharma8793 22 күн бұрын
@gauthamvijay don't worry about subscribers. Developer need quality educational and problem solving video content. If you do that the subscribers will increase automatically.
@gauthamvijay
@gauthamvijay 22 күн бұрын
Thats correct chetan. I post moderate to advanced concepts which cater to a smaller audience. But i will definitely make a banger video on location feature when i get all the features done. Thanks for your support❤️‍🔥
@DevendraKumar-u8f
@DevendraKumar-u8f 7 күн бұрын
@gauthamvijay how to run background and kill state services like i want to get lat and long in background and kill state in react native?
@gauthamvijay
@gauthamvijay 7 күн бұрын
I will make an indepth guide at the end of the series Devendra. Stay tuned as I need to work on it myself to get it working.
Background Geolocation Introduction
6:31
Christopher Scott
Рет қаралды 50 М.
Twin Telepathy Challenge!
00:23
Stokes Twins
Рет қаралды 134 МЛН
Кто круче, как думаешь?
00:44
МЯТНАЯ ФАНТА
Рет қаралды 6 МЛН
How Much Tape To Stop A Lamborghini?
00:15
MrBeast
Рет қаралды 255 МЛН
Real Time GPS Tracking in ReactJS Project
27:04
Geeky Shows
Рет қаралды 13 М.
I Made an iOS App in MINUTES with This AI Tool!
13:20
Creator Magic
Рет қаралды 339 М.
React Native Push Notifications with Expo and Edge Functions
26:48
React Native Maps with Marker & Callout
16:48
Simon Grimm
Рет қаралды 42 М.