Hi, I'm looking for a way to keep fetching my geolocation ( co-ords ) to firebase... the thing is, it works great even when the screen is off but as 5 mins pass, at exact 5 mins the updation stops but I keep seeing the gps sign on the driver's mobile and even the noti. but there;s no hit on firebase, for the battery optimization android and ios kills the background apps after 5 mins... Any ideas how to overcome this issue.
Hi Udit, i understand your requirement. But the problem is that OS kills your app in background after a certain time period. To overcome this problem you need to work with some native functionality which even i havent tried yet
You can create admin, as it’s a user with different role as shown in my ionic complete course, also can fetch user location, also covered in the course
I'm click on fetch button then show error. home:761 ERROR Error: Uncaught (in promise): Error: Location services are not enabled Error: Location services are not enabled i need to turn on gps location.. I'm use capacitor 4 Please help..
Hi, I'm looking for a way to keep fetching my geolocation ( co-ords ) to firebase... the thing is, it works great even when the screen is off but as 5 mins pass, at exact 5 mins the updation stops but I keep seeing the gps sign on the driver's mobile and even the noti. but there;s no hit on firebase, for the battery optimization android and ios kills the background apps after 5 mins... Any ideas how to overcome this issue.
Hi Udit, i understand your requirement. But the problem is that OS kills your app in background after a certain time period. To overcome this problem you need to work with some native functionality which even i havent tried yet
github.com/capawesome-team/capacitor-background-task
Thanks. Can i ask if with capacitor i can remove default splash screen and put animated image instead. Hiding splash is not work
Will make a video on that also
Lottie splash screen
@@CodingTechnyks ok thanks
Do we need to manually enable location first in device, then its works OR its works like native applications?
It’s like native, if you give permission then and location off then it prompts you to enable it
is the geolocation cached? it doest get the latest coordinates from the device even if I used location spoofing
I don’t think so
Check your logs, what it shows out there
Close app and check again
Fantastic!!!!
Finally....thanks
Is it possible to create an admin and recieve the location of the user? Using firebase
You can create admin, as it’s a user with different role as shown in my ionic complete course, also can fetch user location, also covered in the course
If you want the admin to see user location, then you can store user location in firebase and call it as admin
@@CodingTechnyks ok thank you, aside from this tutorial do you have other videos related to it that could help me? help is so appreciated.
Contact me via Facebook messenger
facebook.com/profile.php?id=100005738530768
I'm click on fetch button then show error.
home:761 ERROR Error: Uncaught (in promise): Error: Location services are not enabled
Error: Location services are not enabled
i need to turn on gps location..
I'm use capacitor 4
Please help..
Go to app settings and enable location permission for your app and try again
If still facing issues then let me know