Notification Channel always goes to general #456
pjones19832023
started this conversation in
General
Replies: 1 comment
-
@pjones19832023 can you please attach a sample project? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I try to send a notification it always goes to the General notification channel even though I have created the correct channel and it shows in Android. it even creates new General channels when I disable the general channel. This occurs on android but hasn't been tested on ios.
having checked the plugin code below, it only seems to use the default channel name
public static string DefaultChannelName => "General";
///
/// Default Group Id
///
public static string DefaultGroupId => "Plugin.LocalNotification.Group";
///
/// Default Group Name
///
public static string DefaultGroupName => "GeneralGroup";
///
/// Setting this flag will make it so the notification is automatically canceled when the user clicks it in the panel.
/// Default is true
///
public bool AutoCancel { get; set; } = true;
///
/// Sets or gets, The id of the channel. Must be unique per package. The value may be truncated if it is too lon
/// Use this to target the Notification Channel.
///
public string ChannelId { get; set; } = DefaultChannelId;
Beta Was this translation helpful? Give feedback.
All reactions