开发者

(iphone) How to change the server ip without shipping an updated application?

My application talks to my server and currently server's ip is embedded in the client application.

For any reason, I might have to change the server's location(and it's ip).

With current setup, I'll have to ship a new version with new server ip embedded.

I guess I could get a domain name and embed the domain name in the app, so that I can开发者_JS百科 dynamically change the server machine(with domain name fixed).

Is there other options I could take?

Thank you


You should definitely use DNS. Get a domain name, they are very inexpensive.

If for some reason you absolutely refused, you could devise a way to send a push notification to the phone for IP changes, but if a user has notifications off then you are out of luck.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜