S
S
Stepan Turchenko2020-12-08 20:50:32
Mobile development
Stepan Turchenko, 2020-12-08 20:50:32

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

4 answer(s)
E
Eugene, 2020-12-08
@Nc_Soft

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).

R
Roman Alexandrovich, 2020-12-08
@RomReed

Use firebase. Hammer the key into the database and pull it from the database when the application starts.

S
sergemoskalenko, 2020-12-09
@sergemoskalenko

Firebase, the same Github - row data, but at least
your site.blogspot.com has
thousands of options

S
Stepan Turchenko, 2020-01-01
@StepanTur

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 question

Ask a Question

731 491 924 answers to any question