Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions Jiguang.JPush/Model/Notification.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,25 @@ public class Android
/// </summary>
[JsonProperty("uri_action", NullValueHandling = NullValueHandling.Ignore)]
public string URIAction { get; set; }

/// <summary>
/// 使用DisplayForeground进行设置。
/// </summary>
[JsonProperty("display_foreground", NullValueHandling = NullValueHandling.Ignore)]
internal string Display_Foreground
{
get
{
return DisplayForeground == null ? null : (DisplayForeground.Value ? "1" : "0");
}
}

/// <summary>
/// APP在前台,通知是否展示。默认情况下 APP 在前台会弹出通知栏消息。
/// </summary>
/// <remarks>JPush Android SDK v3.5.8 版本开始支持。</remarks>
[JsonIgnore]
public bool? DisplayForeground { get; set; }
}

public class IOS
Expand Down