Комментарии:
1.3K+...Thanks Philipp. Great tutorial !! Would you mind adding Google Map series in your premium course?
ОтветитьWatched 3times, and don't understand... It went over my head...
Ответитьthe code not working, can you please make another video on this topic
ОтветитьThis is not a background location, it is a messaging foreground app explanaition. By the way, it does not work continuesly!
ОтветитьYou haven't used the ACCESS_BACKGROUND_LOCATION permission in the project. Would this cause any issues when uploading the app to Google Play?
ОтветитьHi,does the foreground service run also when device is locked and in sleep mode?
ОтветитьThank its good prectice for me.
But one my question How to send location on pho server
Adding foregroundServiceType="location" in Manifest file is very crucial for foreground service to run even if app is closed in higher android version.
ОтветитьHi Phillip! Can I take the coordinates from this foreground service and print them also on screen, somehow?
ОтветитьHi Phillip, I was seeking the same solution but it's not working when app gets killed, can you please add something
ОтветитьHi philipp,Could you please upload a video on monitor geofence
ОтветитьPhillip my location isn't changing.. just the same location on every update
ОтветитьNice one
Ответитьeverything is fine but the location is hella inaccurate.
i need very precise location
please help
WARNING!!! Virus in a library you used!!!
I have just tried to run your example code from GitHub on a Windows machine and got this Virus Warning from my Antivirus (Dr.Web):
Android.BankBot.348.origin
C:\Users\youruser\.gradle\caches\transforms-3\c0f72543522d58f6469d8bcfc9faeb00\transformed\ui-text-1.2.0-runtime\classes.dex
How can i push this data to ViewModel?
ОтветитьI found that calling `stop()` before even attempting to start will cause a problem. The reason I'm sharing this is because I'm trying to implement a `restartLocationTracking()` feature. It's essentially a location tracking refresher that involves calling `stop()` and then `start()`. This feature is particularly important when developing a Hybrid cross-platform app using Ionic and Capacitor. Is there a way to check if the (location is being tracked) before we call `stop()`?
Ответитьbest
Ответитьtesting
🙃
how about share and not tutorial
Ответитьshare not tutorial; someone shared this with you
Ответитьi hope you "learned" something here
Ответитьand, why do you say "ya" ? no one asked you a question!
Ответитьhow about "share" not "tutorial", afterall, someone shared it with you
Ответитьhow can we launch this foreground service for android 12 and above while the app is in background or closed, I tried using combination of work manager and exactAlarm but still I am getting ForegroundServiceStartNotAllowedException. Please tell as this is very important for my app. Thanks a lot!
ОтветитьWhy did you use launch { send() } instead of trySend()? Is it okay to launch a new coroutine every time that location callback triggers?
ОтветитьYOU ARE A LIFE SAVER!
ОтветитьHey Philipp, thanks for the video and the code. I had problems with foreground service and your code worked perfectly fine.
I have an additional question tho.
Let's say we want to render a map and a polyline which would render something like a path using the list of locations gathered over time.
The map is rendered inside a @Composable. What's the best way to pass the location data from the service into the @Composable, so it can render the path?
thank you thank you so much for this help
ОтветитьHey great tutorial.
I have some trouble getting the location in background idf i dont implement the code for the notifications. Is it possible ?
Hello, how can we save this information and send it to the backend? And the second question is how can we send an alarm to the backend when the user turns off the GPS
ОтветитьWhy you have used flow? Why you cant used mutable live data of Location?
ОтветитьI am working on android kotlin food delivery project i have order tracking screen in which path will be drawn and customer can track the driver’s location application support is 6-12 than what will the best way to do above defined job? I have to send updated lat long to api to suggest me accordingly
ОтветитьMostra sem uso de compose, acho um lixo o google ter dezenas de forma de fazer algo, e constantemente depreciado a cada 6 meses, eu tenho nojo desta empresa de engenharia chamada GOOGLE
ОтветитьHello Philipp, I truly enjoyed your video and appreciate your effort in educating others. I am currently exploring the integration of beacon technology into my app, but I have encountered a problem where iPhones can wake up by beacons, but Androids cannot. In an attempt to address this, I have implemented Geofencing, where I initiate a search for Bluetooth devices for a limited time in a Foreground service, once a user enters a geofence area. However, you mentioned that obtaining approval for using background location can be quite challenging. Would you happen to have any suggestions for a workaround that would enable me to detect beacons without the need to keep a Foreground service active continuously?
ОтветитьHey Phillip Thanks for this tutorial. It will be helpful if you can make a tutorial on how to show user's trip history with snapToRoad functionality
ОтветитьHi Philipp. What about ACCESS_BACKGROUND_LOCATION permission? Should we use this permission for tracking in background?
ОтветитьThanks Bro😊
ОтветитьHow to play navigation sound when navigation started to confirm that voice directions are working in android studio?
ОтветитьWould be more helpful if you showed how to then use this data on the activity ...not just display a notification.
ОтветитьThank you very much!
ОтветитьReally really great, what you did. It was exactly what i was searching for ( for nearly a week of search ). Transfer into java was not that complicated.
I have one question: why are you building the NorificationChannel inside the Application? I found some others, which are building it inside the Service directly. In that way it seems that they are recreating it with each location update. Cause of this?
Oh, this worked perfectly, thanks!! you have no idea how much this helps!!
I'm definetly buying you that coffee, right now|
IS THIS KOTLIN BRO???
Ответить