The Java server communicates with the mobile app?

Source: Internet
Author: User
Write a server using Java. Provide service support for mobile apps. So, the normal transmission, is not the basic HTTP delivery JSON format of data this scheme is more?

If you need the service to push messages to the app, if you do not use a third party, is not using XAMPP to build a message server, and then the app and the message server has a long connection, then with this connection, is it possible to do not need the above HTTP service scheme? That is, can the message server replace the basic service?

The requirements for the project are certainly part of the app pull server, which is part of the server push to app.

Reply content:

Write a server using Java. Provide service support for mobile apps. So, the normal transmission, is not the basic HTTP delivery JSON format of data this scheme is more?

If you need the service to push messages to the app, if you do not use a third party, is not using XAMPP to build a message server, and then the app and the message server has a long connection, then with this connection, is it possible to do not need the above HTTP service scheme? That is, can the message server replace the basic service?

The requirements for the project are certainly part of the app pull server, which is part of the server push to app.

1. The mainstream is also based on the HTTP protocol, JSON format data;
2. About push, recommend a good blog post (push back is more troublesome things, third-party push is to solve this "trouble" problem).

In the current situation (Android platform), it is almost impossible to maintain long connections in the background. Or HTTP-based, can not be used long-connection push to do not use. There is really push demand, with a third-party bar save time and effort ... Don't rely on the backstage to push, this is a grudge.

  • Related Article

    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.