伊谢尔伦2017-04-18 09:23:04
You can use third-party push implementation, such as JPush. When the application is open, JPush will maintain a long connection to the device. You can send messages through this long connection. If the application is not open, it will go away. APN. In addition, APN push is not necessarily required to achieve this, web socket can also be used.
PHPz2017-04-18 09:23:04
After consulting, the server has a way to refresh the client. This is a solution. There are also long connections and client polling. Because scanning hair does not take too long, polling does not affect performance.