REQ-3284: 推送
This commit is contained in:
parent
91699fcaff
commit
7f9e171739
@ -35,7 +35,6 @@ 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);
|
||||
if (content.hasCustomSoundFile())
|
||||
hwField.put("sound", content.getCustomSoundFile());
|
||||
|
||||
@ -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);
|
||||
if (content.hasCustomSoundFile())
|
||||
notification.put("sound", content.getCustomSoundFile());
|
||||
|
||||
JSONObject honorField = new JSONObject();
|
||||
honorField.put("notification", notification);
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user