Joke Collection Website - Blessing messages - What are the ways to push messages to mobile phones in Java?

What are the ways to push messages to mobile phones in Java?

There are several options for Java Web server message push: polling, long connection, DWR and HTTP2 protocols. There are the following two methods.

One way is to set up your own push server. Generally, the mainstream uses the XMPP protocol. There are also relatively mature frameworks and open source projects for you to use. . The advantage is that you can freely control it because the code is written by yourself. The disadvantage is that it is difficult to set up and it takes a lot of time to understand it thoroughly. Moreover, the control of the heartbeat package and the power consumption of the terminal require a certain level

Another one It uses third-party push, such as Jiguang Push, personal push, etc. The advantage is that it is simple and easy to use, without having to consider the implementation of the server, and it has relatively complete documentation. Just write a few paragraphs of java code. For small and medium-sized companies with few development resources, etc. , Jiguang Push is a proven large-scale App push platform, pushing tens of billions of messages every day, ensuring message delivery rate