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
29271edb
Commit
29271edb
authored
Mar 22, 2014
by
Sebastián Katzer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing `deviceready` method (Fix for #132)
parent
282875db
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
5 deletions
+19
-5
CHANGELOG.md
CHANGELOG.md
+2
-1
LocalNotification.cs
src/wp8/LocalNotification.cs
+17
-4
No files found.
CHANGELOG.md
View file @
29271edb
## ChangeLog
## ChangeLog
#### Version 0.7.4 (not yet released)
#### Version 0.7.4 (not yet released)
-
[
bugfix:
]
Platform specific properties were ignored.
-
[
bugfix:
]
Platform specific properties were ignored.
-
[
bugfix:
]
cancel
may throw an error if the OS returns NIL values (iOS).
-
[
bugfix:
]
`cancel`
may throw an error if the OS returns NIL values (iOS).
-
[
bugfix:
]
Replacing a notification with the same ID may result into canceling both (iOS).
-
[
bugfix:
]
Replacing a notification with the same ID may result into canceling both (iOS).
-
[
bugfix:
]
Missing
`deviceready`
method (WP8).
#### Version 0.7.3 (16.03.2014)
#### Version 0.7.3 (16.03.2014)
-
[
bugfix:
]
cancel callbacks have not been fired after all notifications have been canceled on iOS.
-
[
bugfix:
]
cancel callbacks have not been fired after all notifications have been canceled on iOS.
...
...
src/wp8/LocalNotification.cs
View file @
29271edb
...
@@ -39,9 +39,14 @@ namespace Cordova.Extension.Commands
...
@@ -39,9 +39,14 @@ namespace Cordova.Extension.Commands
public
class
LocalNotification
:
BaseCommand
public
class
LocalNotification
:
BaseCommand
{
{
/// <summary>
/// <summary>
/// Informs if the device is ready and the deviceready event has been fired
/// </summary>
private
bool
DeviceReady
=
false
;
/// <summary>
/// Informs either the app is running in background or foreground
/// Informs either the app is running in background or foreground
/// </summary>
/// </summary>
private
bool
i
sInBackground
=
true
;
private
bool
Run
sInBackground
=
true
;
/// <summary>
/// <summary>
/// Sets application live tile
/// Sets application live tile
...
@@ -128,11 +133,19 @@ namespace Cordova.Extension.Commands
...
@@ -128,11 +133,19 @@ namespace Cordova.Extension.Commands
}
}
/// <summary>
/// <summary>
/// Informs that the device is ready and the deviceready event has been fired
/// </summary>
public
void
deviceready
(
string
jsonArgs
)
{
DeviceReady
=
true
;
}
/// <summary>
/// Called when the application has been switched to background
/// Called when the application has been switched to background
/// </summary>
/// </summary>
public
void
pause
(
string
jsonArgs
)
public
void
pause
(
string
jsonArgs
)
{
{
i
sInBackground
=
true
;
Run
sInBackground
=
true
;
}
}
/// <summary>
/// <summary>
...
@@ -140,7 +153,7 @@ namespace Cordova.Extension.Commands
...
@@ -140,7 +153,7 @@ namespace Cordova.Extension.Commands
/// </summary>
/// </summary>
public
void
resume
(
string
jsonArgs
)
public
void
resume
(
string
jsonArgs
)
{
{
i
sInBackground
=
false
;
Run
sInBackground
=
false
;
}
}
/// <summary>
/// <summary>
...
@@ -200,7 +213,7 @@ namespace Cordova.Extension.Commands
...
@@ -200,7 +213,7 @@ namespace Cordova.Extension.Commands
/// </summary>
/// </summary>
private
String
ApplicationState
()
private
String
ApplicationState
()
{
{
return
i
sInBackground
?
"background"
:
"foreground"
;
return
Run
sInBackground
?
"background"
:
"foreground"
;
}
}
}
}
}
}
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