I am currently working on implementing real-time tracking using sockets in Frappe. My goal is to add latitude and longitude data to a custom doctype for a logged-in user. To ensure secure authentication, I am utilizing the API key of the logged-in user. However, I am facing an issue where the data is being created by the guest user instead of the logged-in user.
Has anyone encountered a similar problem or has experience with real-time tracking in Frappe using sockets? I would greatly appreciate any guidance or suggestions on how to successfully implement real-time tracking in frappe.
Thank you for your time and assistance!
Hello Nijina,
Nice to see an experienced user trying to implement real-time tracking… I also have this assignment but it is not working well for me and I am not experienced enough to really resolve this myself.
Here are the issues:
When I click the Start button first time on a new sheet it also stops immediately. See the video of it here: On Start.mp4
I am very confident that if the time tracking screen is not visible (hidden, minimized etc) it does not track the full time. I don’t know how to record this but if anyone gives it a try I think they should also see that it does not record time correctly. But if the window is on focus then it seems to work just fine…
Have you faced these issues? What are you doing about them?