Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Notification - Android property "display_foreground" #37

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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