Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16750

Get User location and send to Backend to store in database every hour in React native(Android & IOS) & Rails 6 API

$
0
0

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


Viewing all articles
Browse latest Browse all 16750

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>