This week's book giveaway is in the Programmer Certification forum. We're giving away four copies of OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
Hi All, I was building a app But I want to customise few features of app according to location . For Eg : If app is being dowloaded in xyz country then I want to remove few features from menu but for other country I want to show those features . How can this be done ?
Solution which I have thought is :- As I am making a native app so I have thought of writing location in a shared variable and then using that same variable while adding features in menu of my app.
Is it a right way of doing it? Or If anyone can suggest any other way of doing it please let me know. :slightly_smiling_face:
Shared Preferences would be a natural place to store the location once you have determined it.
For determining location, you could either (and rather obviously) require the location permission and read it directly, or run a service on your server that determines it from the IP address whenever the app accesses it.