I want to store the Mobile app user location every Hour.
My question is How to trigger the API which gets the location.
Q1 - The following are the flow of getting location feature but do not know its correct.
1 - React Native will send data to the database to store every Hour(is it possible to trigger from the front-end?)
2 - Create a Cron job in Rails which calls the API to get the user location every hour(In this Will it be an extra load on the rails backend server?)
3 - Create a silent push notification from the Rails side and it will trigger the Front end (React -native) to send the location details of user to save in database.
Q2- Also, is it possible to store the location of the User who is not signed in(guest user)?
Looking forward to your reply.
Thanks