Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cordova-plugin-local-notifications
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nabil Sadki
cordova-plugin-local-notifications
Commits
9b0f037f
Commit
9b0f037f
authored
Sep 05, 2017
by
Sebastián Katzer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added silent option for windows
parent
7022f6af
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
Builder.cs
...Proxy/LocalNotificationProxy/LocalNotification/Builder.cs
+1
-0
Options.cs
...Proxy/LocalNotificationProxy/LocalNotification/Options.cs
+15
-0
No files found.
src/windows/LocalNotificationProxy/LocalNotificationProxy/LocalNotification/Builder.cs
View file @
9b0f037f
...
@@ -157,6 +157,7 @@ namespace LocalNotificationProxy.LocalNotification
...
@@ -157,6 +157,7 @@ namespace LocalNotificationProxy.LocalNotification
notification
.
Id
=
this
.
Content
.
Id
;
notification
.
Id
=
this
.
Content
.
Id
;
notification
.
Tag
=
this
.
Options
.
Id
.
ToString
();
notification
.
Tag
=
this
.
Options
.
Id
.
ToString
();
notification
.
SuppressPopup
=
this
.
Options
.
Silent
;
if
(
this
.
Trigger
.
Occurrence
>
1
)
if
(
this
.
Trigger
.
Occurrence
>
1
)
{
{
...
...
src/windows/LocalNotificationProxy/LocalNotificationProxy/LocalNotification/Options.cs
View file @
9b0f037f
...
@@ -61,6 +61,11 @@ namespace LocalNotificationProxy.LocalNotification
...
@@ -61,6 +61,11 @@ namespace LocalNotificationProxy.LocalNotification
public
string
Image
{
get
;
set
;
}
public
string
Image
{
get
;
set
;
}
/// <summary>
/// <summary>
/// Gets or sets a value indicating whether the popup shall be visible.
/// </summary>
public
bool
Silent
{
get
;
set
;
}
=
false
;
/// <summary>
/// Gets or sets the notification trigger.
/// Gets or sets the notification trigger.
/// </summary>
/// </summary>
public
Trigger
Trigger
{
get
;
set
;
}
public
Trigger
Trigger
{
get
;
set
;
}
...
@@ -126,6 +131,11 @@ namespace LocalNotificationProxy.LocalNotification
...
@@ -126,6 +131,11 @@ namespace LocalNotificationProxy.LocalNotification
options
.
Attachments
=
node
.
GetAttribute
(
"attachments"
).
Split
(
','
);
options
.
Attachments
=
node
.
GetAttribute
(
"attachments"
).
Split
(
','
);
}
}
if
(
node
.
GetAttributeNode
(
"silent"
)
!=
null
)
{
options
.
Silent
=
true
;
}
if
(
node
.
GetAttributeNode
(
"action"
)
!=
null
)
if
(
node
.
GetAttributeNode
(
"action"
)
!=
null
)
{
{
options
.
Action
=
node
.
GetAttribute
(
"action"
);
options
.
Action
=
node
.
GetAttribute
(
"action"
);
...
@@ -185,6 +195,11 @@ namespace LocalNotificationProxy.LocalNotification
...
@@ -185,6 +195,11 @@ namespace LocalNotificationProxy.LocalNotification
node
.
SetAttribute
(
"attachments"
,
string
.
Join
(
","
,
this
.
Attachments
));
node
.
SetAttribute
(
"attachments"
,
string
.
Join
(
","
,
this
.
Attachments
));
}
}
if
(
this
.
Silent
)
{
node
.
SetAttribute
(
"silent"
,
"1"
);
}
if
(
action
!=
null
)
if
(
action
!=
null
)
{
{
node
.
SetAttribute
(
"action"
,
action
);
node
.
SetAttribute
(
"action"
,
action
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment