Skip to content

Commit e99606a

Browse files
author
詹强
committed
android-支持自定义消息解析title
1 parent 9b348bd commit e99606a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

android/src/main/java/cn/jiguang/plugins/push/helper/JPushHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ public static WritableMap convertNotificationBundleToMap(String eventType, Bundl
5252
return writableMap;
5353
}
5454

55-
5655
public static WritableMap convertCustomMessage(CustomMessage customMessage) {
5756
WritableMap writableMap = Arguments.createMap();
5857
writableMap.putString(JPushConstans.MESSAGE_ID, customMessage.messageId);
58+
writableMap.putString(JPushConstans.TITLE, customMessage.title);
5959
writableMap.putString(JPushConstans.CONTENT, customMessage.message);
6060
convertExtras(customMessage.extra, writableMap);
6161
return writableMap;

0 commit comments

Comments
 (0)