REQ-3284: 推送

This commit is contained in:
yanglin 2024-11-29 11:00:18 +08:00
parent 91699fcaff
commit 7f9e171739
3 changed files with 5 additions and 5 deletions

View File

@ -35,8 +35,7 @@ class HWPushPayloadBuilder extends AndroidPushPayloadBuilder<UriIntent> {
hwField.put("style", 1);
hwField.put("big_title", content.getTitle());
hwField.put("big_body", content.getContent());
if (content.hasAndroidPushUrl())
hwField.put("click_action", clickAction);
hwField.put("click_action", clickAction);
if (content.hasCustomSoundFile())
hwField.put("sound", content.getCustomSoundFile());

View File

@ -29,8 +29,9 @@ class RYPushPayloadBuilder extends AndroidPushPayloadBuilder<UriIntent> {
JSONObject notification = new JSONObject();
notification.put("title", content.getTitle());
notification.put("body", content.getContent());
if (content.hasAndroidPushUrl())
notification.put("clickAction", clickAction);
notification.put("clickAction", clickAction);
if (content.hasCustomSoundFile())
notification.put("sound", content.getCustomSoundFile());
JSONObject honorField = new JSONObject();
honorField.put("notification", notification);

View File

@ -19,7 +19,7 @@ public interface Intent<T> {
// !! helper
static void setRouter(Intent<?> intent, IntentValue value) {
intent.setValue(INTENT_ROUTER, value.urlEncode());
intent.setValue(INTENT_ROUTER, value);
}
}