-3

I wonder if I can get more information on the sending downlink messages function under the HMS Push Kit.

Regarding the online documentation, there are two restrictions in this function.

I have a little bit question about the second restriction on β€œThe maximum number of token cannot exceed 1000”.

The number of token means the target receiver token? What will be happen when I sent 1001 push messages in the same time?

If it will be failed, do I need to send second request to the HMS Push Server for sending the outstanding push messages?

If 1M push messages need to be sent in the same time. How can I achieve it? Do the HMS Push Kit allows me to do so?

zhangxaochen
  • 32,744
  • 15
  • 77
  • 108

2 Answers2

0

If the maximum number of token exceed 1000 then we will get an errorcode as "80300010 : The number of tokens in the message body exceeds the default value" so the maximum number of token must not be more that 1000.

If more tokens need to be used while send the messages, the best method is to inovoke the API using App server and send the messages in batches.Please find below screen for errorcode and its description :

enter image description here

The maximum number of messages that can be sent to an app on a device or user is 3,000 per day. Exceeding this number, messaging traffic to the app will be limited. When the number of messages exceeds 100,000, Push Kit will be disabled. In this case, rectification must be performed and a rectification plan must be submitted to apply for Push Kit again.

Please go through the FAQ's for more information in below link : https://developer.huawei.com/consumer/en/doc/development/HMSCore-Guides/faq-0000001050042183?ha_source=hms1

zhangxaochen
  • 32,744
  • 15
  • 77
  • 108
  • With the 100,000 limit, is it a global limit or per device limit? Does that mean if I send one message per device on average, HSM can't support more than 100,000 users/devices? – MIWMIB Aug 27 '21 at 11:28
  • 1
    hi@MIWMIB, It is a per-device limit. – zhangxaochen Aug 30 '21 at 01:31
0
  1. Discarded due to frequency control: Number of messages that will be discarded when the maximum number of messages sent based on a single token each day reaches 3,000. refer to URL here
  2. Topic-based messaging does not limit the number of subscriptions for each topic. However, the function in Push Kit has the following restrictions: A maximum of 2000 topics can be subscribed to for one app instance. A maximum of 100 topic-based messages can be sent concurrently. refer to URL Here.
Zinna
  • 1,947
  • 2
  • 5
  • 20