The invention discloses a method and device for implementing message push by a layered state machine, including a receiving layer, an exchange layer, a routing layer and a consumption layer. First, the receiving layer receives messages from different platforms sent by a server; secondly, Said message received by said receiving layer and said exchange layer run in the same process with two different threads respectively and pass said message to said exchange layer; Then, said exchange layer performs said message The unified format is converted and passed to the routing layer; finally, the routing layer runs on the worker thread, and pushes the received message to the consumer layer running on the UI thread. The division of labor at each level is detailed, and there is no coupling, which improves the compatibility and success rate of message push. This solves the technical problem of the incompatibility of various third-party message push platforms in the prior art, resulting in a low message push delivery rate, and achieves the technical effect of being compatible with multiple push platforms, thereby improving the success rate of message push.