Test Summary of the AndroidPN message push Library (similar to thunder Android)

Source: Internet
Author: User

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/

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.