Diese Seite ist in Ihrer lokalen Sprache noch nicht verfügbar. Wir arbeiten daran, weitere Sprachversionen hinzuzufügen. Vielen Dank für Ihre Unterstützung.

On this page

Show all

Application Message Format

Updated on 2022-09-19 GMT+08:00
Table 1 Application message format

Type

Example Value

Remarks

HMS transparent push message

"hps": {

"msg" : {

"type" : 1,

"body" : {"key":"value"}

}

}

You can choose to specify the message in text or JSON format.

NOTE:
  • The JSON format is recommended, as shown in the example value.
  • The message in text format is encoded using UTF-8.
  • The message body cannot exceed 2 KB.

    For details, visit Huawei Mobile Services.

Huawei notification push message

"hps": {

"msg": {

"type": 3,

"body": {

"content": "Push message content",

"title": "Push message content"

},

"action": {

"type": 1,

"param": {

"intent":"#Intent;compo=com.rvr/.Activity;S.W=U;end"

}

}

},

"ext": {

"biTag": "Trump",

"icon": "http://upload.w.org/00/150pxsvg.png"

}

}

Apple platform message

{

"aps": {

"alert": "hello world"

}

}

The message body cannot exceed 4 KB.

For details, visit Apple Push Notification Service.

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback