Answer the question
In order to leave comments, you need to log in
How to store mobile application server address?
What is the most appropriate way to store the api server address for a mobile app if it changes frequently so as not to re-publish the app. (for example, some kind of service that you can contact when you turn on the application to pick up the address and save it in the store until the next opening)
* The application itself is on react native *
Answer the question
In order to leave comments, you need to log in
Well, here, either make a server that "does not change" so that it gives the url for the api, or if the api often moves from server to server, then through dns (if the domain does not change).
Use firebase. Hammer the key into the database and pull it from the database when the application starts.
Firebase, the same Github - row data, but at least
your site.blogspot.com has
thousands of options
I considered it the most optimal solution to use the Code push service,
which allows you to update the server address, but also update all the code in the application over the air, even after the publication of
"React native code push npm"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question