Is there a way to get locations history, or at least have a service to track if user visited certain location.
We want to try to track if the consumer will re-enter the location, even when app is closed.
Starbucks does that (when you're near Starbucks cafe, they send special deals based on that specific Starbucks cafe)
There is a Frequent Locations in iOS, how to get that in react-native?
Update:
Watching location is not the case, as it requires app to be active
You can use geolocation to listen to a user location. Whenever he enters the location you want, you can trigger a function to do whatever you want.
You can find more details of how to implement it in the official docs:
https://facebook.github.io/react-native/docs/geolocation.html
Hope it helps.
Your answer is Geofences. Geofences are an easy way to create an area and check if user has entered, exited and stayed or not. The app works in "terminated" mode as well provided that it has required location permission.
For iOS, you can use the Geolocation framework. I'm hopeful that react-native has a library to use that framework. If not, you can write native code and use it by building native module.
Related
So I'm working on a react native expo app ,which deals with touchless menu where a QRcode is placed on the table and you can scan it and start ordering in a restaurant ,I came across a scenario where the user can scan the QR code and go home and still able to place an order or if he makes a note of the scanned QR code via mobile camera he can again place an order without being in the restaurant .
So my point is how do I prevent a user from misusing the QR code ,what steps I should take in order to prevent this scenario from happening ,I searched various platforms and couldn't find a proper answer.
So I just need the workflow I don't need any code
Thanks in advance
The only possible way to implement a location restriction for a user is to get their permission to use their location, which in some cases a malicious user may be able to forge and still get access.
There could be monitors inside the restaurant to show a unique code which every user has to enter to get access to the menu, but again, that can cause more harm than good and be a hell to implement!
First of all thank you for your time reading and maybe answering this question.
We have a react native app that uses react native Localize to handle i18n, and Firebase to handle notifications, those are sended in a PHP server.
We save the user´s locale (which we take from the phone) in our database after sign up. When we send the notification we translate it according to the users locale before sending it to the app.
But the user has the ability to change his phone language, so the notification might arrive in a different language because he has change it.
We first tought of checking each time the user loads the app if it´s locale has changed and update the bbdd field.
But we are not sure if this is a right approach.
How do you usually manage it?
I am having the same problem. I believe that other solution is offer the language setting inside your own app instead depend of operating system language, already see others apps making it.
With the language config inside your app, can you have total control of language to send push notification if you persists it in your backend.
I'm trying to incorporate a feature into one of my apps that allows you to message users that are, at that moment, in and using the app. I've searched for a while now, but with no luck finding any article, API, npm package, etc, that supports this concept - if it even is possible.
I'd rather use an API than see when the user was last on the app via a timestamp and then "guess" if the user is still using the app.
I'm using React Native.
Check that AppState equals to 'active'.
https://facebook.github.io/react-native/docs/appstate
I need to build an app so that I can share location with friends. My approach first was to get location access and share it via Firebase but this doesn't fulfill the requirement of offline access.
I've already worked on bridging in RN. Kindly suggest possible solutions. I've already done a bit of research but couldn't find any satisfying answer/solution.
you can send your loction through sms using smsmanager
just get your longitude and latitude and concatinate the link send it through sms its the only way to send or through your current location offline...
I was wondering if anyone has any experience of submitting location-specific apps to the Apple App store.
What I mean by location-specific is an app that only works when you are at a particular location. For example, a GPS tour of a historical battleground might have content that is triggered at particular lat/long coordinates when the user is at the actual physical location.
So my question is: In order to make the app be likely to be accepted on the app store do I..
(1) Not worry about it as there's evidence that the Apple Reviewers have some way of simulating the GPS. I can then supply lat/long coords to the reviewers so they can experience some of the content.
or (I suspect more likely)
(2) I Need to make it work anywhere in order for the reviewer to see at least some of the content (e.g. have a menu or map interface that allows direct access). This could be a 'secret' option explained in the review notes accessed via a special key combination or something.
Has anyone else run into a situation like this?
Regards,
Ben
Edit: Thanks for the responses. My app has now been accepted by Apple. Interestingly I didn't need to make the app work anywhere or add any new methods of using the app at all, they simply asked me for a video of the app in action. I made a YouTube video of the app (unlisted of course) and sent it to the reviewers.. and now it's accepted! I was very surprised that this is how it worked out!
I asked this same question (and answered it myself) a while back. I basically added a "Drop Pin" feature so the testers (and users) could pretend to be somewhere else.
I submitted an app recently that "works anywhere" (and uses GPS) but "works best" in New England when looking for data (on our server) that is near your current location. The app also supports entering a city & state or zip code to perform searches. So, in the submission, you can tell the reviewers how to test it, and we explained the nature of the app and how to test the functionality by using specific New England locations. The app was approved, for what it's worth.
Basically, when you submit an app, there is an opportunity to give the reviewers guidance. So definitely tell them what they need to know to make your app work for them, wherever they might be in the world! :-)