search

Home  >  Q&A  >  body text

android - 移动端开发需要与应用服务器通讯时通常采用什么方法?

在开发android或者ios移动端应用的时候,如果终端需要需要获取数据库中的信息或者持久化一些信息的时候。
1.是不是要建置一个app server,开发一些api供移动端调用?
2.二者的通讯通常采用什么协议? http restful吗?
3.有哪些安全方面的事项需要注意?

大家讲道理大家讲道理2892 days ago455

reply all(3)I'll reply

  • ringa_lee

    ringa_lee2017-04-18 09:07:30

    To build your own server or use a third-party cloud service, you can take a look at firebase, which was introduced a lot on googleIO this year.
    As for transmission, the most basic one is http, but it is best to use https, and the data format is json, which is used by the client It is quite comfortable to use retroful to achieve network layer access.
    There are also some IM requirements that require long connections, xmpp protocol or MQTT protocol. Both the server and the client have open source implementations. Just google it and it will be OK.

    reply
    0
  • 阿神

    阿神2017-04-18 09:07:30

    1. It is necessary to have a server to connect to the database and do business logic processing
    2. HTTP REST API, generally transmit data in JSON form
    3. Data encryption and decryption

    reply
    0
  • 天蓬老师

    天蓬老师2017-04-18 09:07:30

    1. The communication server provides an interface and data encryption is enough.
    2. Data persistence. The terminal has a persistence method, such as sqlite, and the data from the server can be stored in the database.

    reply
    0
  • Cancelreply