android push post summary of basic questions and answers

  • 2020-06-15 10:12:52
  • OfStack

What's the difference between notification and message?

Notification: After sending it, it will be displayed in the system notification bar. Meanwhile, it will ring or vibrate to remind the user.
Message: The message is not displayed in the system notification bar after it is sent. SDK sends the message to the third party application and requires the developer to write the display code to see it.

What is the label tag?

A tag is a user's property, which can be pushed after setting a certain type of tag for some users. For example, if you like "football", you can give them a precise push. Each application can be managed on the application management page with up to 100 tabs per application

What are SDK's requirements for mobile phones and operating systems?

SDK supports Android1.6 and above
Mobile phones must have Internet access (GPRS, 3G, Wifi, etc.)
Mobile phones may not have SIM card, but some functions may be lost. Mobile phones may not have SD card mounted, but some functions will not work properly

How does SDK consume power and flow?

SDK is specially optimized for mobile phones, with no load consumption of 15-50 mah/day and no load flow of 0.8-1.2M/ month

Send message and notify phone not received?
The & # 8226; Whether the format of push message and notification on the server side is correct (the format can refer to the interface document of the server side; Push with an open platform (ES39en.getui.com) without confirmation
The & # 8226; Whether the mobile phone network is normal (multiple web pages can be used in the browser)
The & # 8226; Please check to see if SDK successfully initialized and obtained ClientID (see The SDK Access Document for The Push Platform Client for details). Extension functionality
The & # 8226; If you are sending a message that requires the developer to write the receive processing rendering code, make sure you write the appropriate processing code
The & # 8226; When ClientID is successfully initialized and obtained, 1-key monitoring is carried out by pushing open platform - fault troubleshooting - existing clientid

What should I do if SDK does not get clientid?

The & # 8226; Please confirm whether the phone starts the app normally
The & # 8226; Please confirm whether the mobile network (GPRS, 3G) or Wifi is enabled
The & # 8226; Please stop the application, restart it and wait for a few minutes
The & # 8226; If you still do not get ClientID as described above, uninstall the reinstalled application

Is the server API provided?

Yes, the server provides three API interfaces for developers to call. For detailed usage, please refer to the Document of The Server Interface of The Push Platform.

Why do I call the server interface and say "result=sign_error"?

The & # 8226; Please confirm whether the code is UTF-8 or change it to UTF-8 if not
The & # 8226; Check for values associated with appid, appkey, masterSecret, especially masterSecret not to be confused with appsecret.

Why is the server API push sometimes not received?

In the following cases, the message received by the mobile phone will not be displayed in the notification bar, and the developer is required to write the code to display the receiving and processing data
The & # 8226; Push messages with pushmessage
The & # 8226; Push messages with pushSpecifyMessage with pushType value "TransmissionMsg"
The & # 8226; Push message with pushGroupMessage with pushType value of "TransmissionMsg"

What does it mean to upload the correct user list in the specific users on the page of push platform?

Clientid list, formatted as txt file, 1 clientid per line, return feed, maximum size 20M

The number of registered users and the number of online users in the application details section is 0, why?

The & # 8226; Check to see if the client gets clientid
The & # 8226; The number of registered users was delayed to the second day, and the number of online users was delayed for about 15 minutes
The & # 8226; You may have modified the application appid, causing clientid to bind to the previous appid. You need to delete the sd card libs directory, clean up the application or uninstall the reinstall, and then start the application to reacquire clientid

The three test push buttons in the access boot cannot be received, but the troubleshooting can be received
You should modify the application appid to bind clientid to the previous appid. You need to delete the sd card libs directory, clean the application or uninstall the reinstall, and then start the application to reacquire clientid

Under what circumstances will clientid change
If the mobile phone does not have sd card, the application will change clientid by uninstalling, reloading or wiping the data. Other abnormal situations cannot be ruled out, but it has not been found so far

I started my app, and then I hit notification, and he started my app, so I started two. Why is that?
This does happen when the push parameter transmissionType is set to 1 through the server interface or when the push open platform Advanced Settings select the launch option right away.
If it is necessary to avoid this phenomenon, it is recommended to set the parameter transmissionType to 2 when pushing through the server interface, and fill in the pass-through message; When pushed through the open platform of push, the setting launch option in advanced Settings is
No, and fill in the through message. The client gets the pass-through message to determine the current state of the application, and then makes corresponding processing according to the state.

If I log into two accounts on the same phone, then on my server, the clientID associated with these two accounts will be the same, so the message pushed will be confused?
For tweets sent only according to user clientid, such a situation cannot be avoided. It is suggested that the client maintain the relationship between id and clientid, detect the binding relationship between id and clientid when the user logs in, and issue the corresponding clientid according to the relationship.

After receiving the push, the top column of the phone shows the robot. Why?
One icon named push. png needs to be placed under drawable in the project


Related articles: