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
d6e739ab
Commit
d6e739ab
authored
Jan 30, 2018
by
Sebastián Katzer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow to manually fire queued events [fixes #1444]
parent
a9286318
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletions
+12
-1
local-notification.js
www/local-notification.js
+12
-1
No files found.
www/local-notification.js
View file @
d6e739ab
...
@@ -504,6 +504,15 @@ exports.fireEvent = function (event) {
...
@@ -504,6 +504,15 @@ exports.fireEvent = function (event) {
};
};
/**
/**
* Fire queued events once the device is ready and all listeners are registered.
*
* @return [ Void ]
*/
exports
.
fireQueuedEvents
=
function
()
{
exports
.
_exec
(
'ready'
);
};
/**
* Merge custom properties with the default values.
* Merge custom properties with the default values.
*
*
* @param [ Object ] options Set of custom values.
* @param [ Object ] options Set of custom values.
...
@@ -957,7 +966,9 @@ if (!Array.from) {
...
@@ -957,7 +966,9 @@ if (!Array.from) {
// Called after 'deviceready' event
// Called after 'deviceready' event
channel
.
deviceready
.
subscribe
(
function
()
{
channel
.
deviceready
.
subscribe
(
function
()
{
exports
.
_exec
(
'ready'
);
if
(
!
window
.
skipLocalNotificationReady
)
{
exports
.
fireQueuedEvents
();
}
});
});
// Called before 'deviceready' event
// Called before 'deviceready' event
...
...
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