How does the java server communicate with mobile apps?

Source: Internet
Author: User
Write servers in java. Provide Service Support for mobile apps. So, is there a lot of Solutions to transmit data in json format through basic http? If you need the server to push messages to the app, if you do not use a third party, do you want to use xampp to build a message server and then the app... write the server in java. Provide Service Support for mobile apps. So, is there a lot of Solutions to transmit data in json format through basic http?

If you need the server to push messages to the app, if you do not use a third party, do you want to use xampp to build a message server, and then there is a persistent connection between the app and the message server, can I skip the above http service scheme? Can the basic service be replaced by the message server?

Some of the project's requirements must be the app pull server, and some are the server push to app.

Reply content:

Write servers in java. Provide Service Support for mobile apps. So, is there a lot of Solutions to transmit data in json format through basic http?

If you need the server to push messages to the app, if you do not use a third party, do you want to use xampp to build a message server, and then there is a persistent connection between the app and the message server, can I skip the above http service scheme? Can the basic service be replaced by the message server?

Some of the project's requirements must be the app pull server, and some are the server push to app.

1. Data in json format is still mainstream Based on Http protocol;
2. We recommend a good blog article on pushing (push is still troublesome, and third-party push is designed to solve this "troublesome" problem ).

In this situation (Android platform), it is almost impossible to maintain persistent connections in the background. it is still based on Http, so long connection push is not required. there is a need for pushing. It takes time and effort to use a third party... don't rely on pushing in the background. This is a resentment.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.