开发者

Android - web server connectivity and authentification

I need my app to be able communicate with a web server. The problem is I want web server to respond only to requests made from real android phones.

So, is there any way to make sure, that server works only with real phones? It should reject anything else to prevent spamming database from computers or emulators. Is it possible without sms verification?

And how good is socket support in Android? If I want to w开发者_如何转开发rite server software in C will it be able to communicate with Android based devices? Or I have to use php, or something like that?

Maybe OpenSSL, but still I'm not sure.

Thanks in advance! PS: sorry for my English


There is no real way for a web server to distinguish a real mobile device from a device that poses as one. Generally, the user-agent header is used to determine the type of client device, the value of which can be overwritten by any client.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜