App message push and question answer

Source: Internet
Author: User

Message push is an essential part of every app

As far as Baiwei is concerned:

iOS message push with Apple server APNS
Aurora push for Android (Jpush)
They're all free.

The working mechanism of the IPhone (APPLE) can be summarized simply as:

The iphone has launched a message push mechanism since 3.0, with the principle that messages are handled uniformly by the server.

Provider refers to the push server for an iphone software,

APNS is an abbreviation for Apple push Notification Service (Apple push server) and is Apple's server.

Can be divided into three stages.

The first stage: Provider the message to be sent, the logo of the target iphone is packaged and sent to APNs.

Phase II: APNs in its own list of iphone's registered push services, look for an iphone with a corresponding logo and send the message to the iphone.

The third stage: The iphone sends the message to the appropriate application and follows the settings to eject the push notification.

From what we can see.

1, the first is the application registration message push.

2, iOS and APNs server to Devicetoken. The application accepts Devicetoken.

3. The application will send Devicetoken to the push server program.

4. The push service side program sends the message to the APNs service.

5. The APNs service sends the message to the iphone app.

The APNs and iphone maintain a 15-minute heartbeat connection that maintains the phone's connection to the server, or the phone keeps connecting until it connects to the server. The program does not have to open and proactively check for updates in real time, and when a APNS message is received, the iphone pops up a dialog push message and accompanies the sound, and the user can choose either "View" or "close". Even if the user is currently offline, the user activates the program after receiving the message, and then downloads the message or recording through the program link Application server.

------------------------------------------------------------------ --------------------------------------------- ----------------------------------------------------------

There are known issues with Android message push:

In the case of the app being killed, you can't receive messages pushed in the background.

The push was successful, why are some clients not receiving the push?

1. Program: Please check the log in Logcat to determine whether the client's Jpush integration is successful, the network is not a problem
Please look at the log or use interface ispushstopped to check if Stoppush is called
Check that the "Allow push Time" setting is set in the Jpush advanced settings for your phone
2. On the device: whether the "show notification" is checked in the mobile app

3. Because the management software of the third-party ROM requires manual operation of the user
Xiaomi "MIUI"
Self-start management: The application must be added to the "Self-startup Management" list, or the process cannot be turned on after the kill process or reboot
Notification bar settings: app defaults to show notification bar notifications, if close , you will not be prompted for
Network assistant: You can manually prevent installed third-party programs from accessing 2G/3G and WiFi networks and setting whether the new installer will allow access to 2g/3g and WiFi networks
MIUI 7 Stealth mode: Allow the app to customize the configuration mode, The app keeps the network available in the background, or the app doesn't receive messages properly when the app enters the background. Power and performance under Settings "hidden mode"
Huawei "Emotion"
Self-start management: You need to add the app to the "Self-boot Management" list, or the process will not open after the kill process or reboot, only manually open the app
Background app protection: you need to manually add the app to this list, Otherwise, when the device goes to sleep, it will automatically kill the application process, only manually open the app to resume running
Notification Management: There are three application states: Prompt, allow, prohibit. Prohibit app the notification bar will not have any reminders
Meizu Flyme
Self-start management: You need to add the app to the "self-startup Management" list, or the process cannot turn on the
Notification bar push after the kill process or reboot: Turn off app notifications and receive messages without any display
power-saving management: In the heart of security to set the power-down mode, in the "Standby consumption management" allows the application of standby, keep allowed, otherwise the phone hibernation or the application idle for a period of time, unable to receive the message normally.
VIVO "Funtouch OS"
Memory One-click Cleanup: Need to add apps to the "whitelist" list, or the system comes with "one-click Acceleration", will kill the process
self-start management: Need to add the app to the "I housekeeper" in the "Self-startup Management" list, Otherwise the process does not start after restarting the phone. But forcing the manual kill process, even if added to this list, the subsequent process will not be self-starting.
OPPO "Coloros"
Freezes Application management: You need to add the app to the clean background, or the lock screen will not be able to receive messages in a timely manner
self-start management: Add apps to the "Self-startup Management" list, but also to the settings-application-running lock application process, Otherwise the kill process or boot process will not open, only manually open the app
Samsung
Memory One-click Optimization: You need to add the application to the "whitelist" list, or the system memory optimization, will kill the application process

--------------------------------------------------------------------- ------------------------------------------ -------------------------------------------------------------

Question answer: PROBLEM one: Meizu Mobile can't receive message push

Later discovered, not to receive, but put in the non-important notice inside.

How to put in the normal notice inside, because I also have to inform the vibration and sound test, all kinds of Baidu, a variety of functions, or not.

Finally, finally get a little information, that is Meizu notification has memory function .

The solution is, more than a few times notice, certain points open, remember, certain points open (of course, click to have an action to do, or you have to left slide delete, so it is not), so many tests several times.

I probably tested it less than 10 times and then removed it from an important notice and became a regular notification of sound vibrations.

Issue two: Android app switch to the background, or mobile phone lock screen automatically clean back up the background app to extend the standby time, resulting in the app can not receive the message pushed back to our backstage "one-click Cleanup", always a word to close all apps, in order to protect the app is not for any external forces shake, give it "lock" it

One solution:

Click on the bottom left menu button to enter the multi-task background, select the need to lock the app, slide, the top left corner of the lock mark, at this time a key cleanup, lock app will not be closed!

 

App message push and question answer

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.