Test Summary of the AndroidPN message push Library (similar to thunder Android)
I should have done it before. I have been busy with new projects and have no time. U3D killed me ..... take some time over the weekend to see if you can perform a stress test on AndroidPN & modify the AndroidPN client so that it can receive push messages and display them on the UI.
First, let's talk about the problem of performance testing of Android: It was originally said that multiple threads were opened, and then many ServiceManeger were created to start the service, so that there could be connections from many clients. Actually not, but it is found that the background page is always a connection:
Later, I checked the information and read the client connection log and AndroidPN server engineering structure. I think there are several points:
1. The AndroidPN server has a user database;
2. The AndroidPN server may be identified as a client using something like IP address or RESOURCE_NAME (the background Code does not understand, but here is an article about AndroidPN research.Http://blog.csdn.net/jinzhu117/article/details/7907746), There is also an article on secondary development:Http://www.cnblogs.com/qiengo/p/3549345.html
3. If you want to perform stress testing, you must modify the background and foreground code.
4. However, AndroidPN is implemented using the Mina framework. The company previously used Mina for heartbeat. It is understood that it can receive 1000 users simultaneously to access (one service) and listen to what the server tells me. Hey hey...
5. Study again later...
If anyone has a good way to give a suggestion, thank you very much...
": The PUSH message is received and displayed on the UI.
In fact, this is mainly to modify the package org. androidpn. client/Notifier. java file. Here there is a demo,
Http://errovenus.github.io/After downloading the SDK, you can see the simple comments and modifications made in my project. You can modify the Click Event Processing of push messages. If you want to add more message push types, you need to modify the background code.
The specific Demo is here:
Http://errovenus.github.io/