简体   繁体   中英

How to host independent URL in Flutter mobile App?

I am using one IP based URL of my hosting in my flutter app or all data fetching operations. Eg "http://xxx.xxx.xxx.xxx". I do not have purchase any domain and don't wanna purchase any domain due to limited budget. My question is. What if after releasing app I need to change hosting? Is there any way / suggestion that I can have flexible URL that won't affect if I change hosting. Any suggestions?

The short answer is: it's much easier to purchase a static IP hosting. There's a ton of them starting at $5/month

What you can do, you can use Firebase Config to send the url from firebase to your app. And if in future url changes, change it from firebase config. And firebase config is absolutely free. firebase config is really easy to set up in flutter project.

Firebase config pub

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM