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
afbf2c94
Commit
afbf2c94
authored
Sep 07, 2017
by
Sebastián Katzer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added `queued` flag to event payload
parent
bcd62176
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
APPLocalNotification.m
src/ios/APPLocalNotification.m
+1
-0
LocalNotificationProxy.js
src/windows/LocalNotificationProxy.js
+2
-2
No files found.
src/ios/APPLocalNotification.m
View file @
afbf2c94
...
@@ -631,6 +631,7 @@
...
@@ -631,6 +631,7 @@
[
data
setObject
:
event
forKey
:
@"event"
];
[
data
setObject
:
event
forKey
:
@"event"
];
[
data
setObject
:
@
(
isActive
)
forKey
:
@"foreground"
];
[
data
setObject
:
@
(
isActive
)
forKey
:
@"foreground"
];
[
data
setObject
:
@
(
!
deviceready
)
forKey
:
@"queued"
];
if
(
request
)
{
if
(
request
)
{
notiAsJSON
=
[
request
encodeToJSON
];
notiAsJSON
=
[
request
encodeToJSON
];
...
...
src/windows/LocalNotificationProxy.js
View file @
afbf2c94
...
@@ -352,11 +352,11 @@ exports.clicked = function (xml, input) {
...
@@ -352,11 +352,11 @@ exports.clicked = function (xml, input) {
* @return [ Void ]
* @return [ Void ]
*/
*/
exports
.
fireEvent
=
function
(
event
,
toast
,
data
)
{
exports
.
fireEvent
=
function
(
event
,
toast
,
data
)
{
var
meta
=
Object
.
assign
({
event
:
event
},
data
),
var
meta
=
Object
.
assign
({
event
:
event
,
queued
:
!
ready
},
data
),
plugin
=
cordova
.
plugins
.
notification
.
local
.
core
;
plugin
=
cordova
.
plugins
.
notification
.
local
.
core
;
if
(
!
ready
)
{
if
(
!
ready
)
{
queue
.
push
(
arguments
);
queue
.
push
(
[
event
,
toast
,
meta
]
);
return
;
return
;
}
}
...
...
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