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
d3cdd711
Commit
d3cdd711
authored
Jan 31, 2014
by
Sebastián Katzer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
App throwed an error at restart if a callback was registered
parent
448b220d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletions
+7
-1
README.md
README.md
+2
-0
LocalNotification.java
src/android/LocalNotification.java
+5
-1
No files found.
README.md
View file @
d3cdd711
...
@@ -47,7 +47,9 @@ More informations can be found [here](https://build.phonegap.com/plugins/413).
...
@@ -47,7 +47,9 @@ More informations can be found [here](https://build.phonegap.com/plugins/413).
## Release Notes
## Release Notes
#### Version 0.7.1 (not yet released)
#### Version 0.7.1 (not yet released)
-
[
bugfix:
]
`ongoing`
attribute was ignored.
-
[
bugfix:
]
`oncancel`
wasnt fired if
`autoCancel`
was set to true.
-
[
bugfix:
]
`oncancel`
wasnt fired if
`autoCancel`
was set to true.
-
[
bugfix:
]
App throwed an error at restart if a callback was registered.
#### Version 0.7.0 (22.01.2014)
#### Version 0.7.0 (22.01.2014)
**Note:**
The new way of callback registration will be not compatible with previous versions! See #62
**Note:**
The new way of callback registration will be not compatible with previous versions! See #62
...
...
src/android/LocalNotification.java
View file @
d3cdd711
...
@@ -275,7 +275,11 @@ public class LocalNotification extends CordovaPlugin {
...
@@ -275,7 +275,11 @@ public class LocalNotification extends CordovaPlugin {
* Gibt an, ob die App im Hintergrund läuft.
* Gibt an, ob die App im Hintergrund läuft.
*/
*/
private
static
boolean
isInBackground
()
{
private
static
boolean
isInBackground
()
{
return
!
context
.
getPackageName
().
equalsIgnoreCase
(((
ActivityManager
)
context
.
getSystemService
(
Context
.
ACTIVITY_SERVICE
)).
getRunningTasks
(
1
).
get
(
0
).
topActivity
.
getPackageName
());
try
{
return
!
context
.
getPackageName
().
equalsIgnoreCase
(((
ActivityManager
)
context
.
getSystemService
(
Context
.
ACTIVITY_SERVICE
)).
getRunningTasks
(
1
).
get
(
0
).
topActivity
.
getPackageName
());
}
catch
(
Exception
e
)
{
return
true
;
}
}
}
/**
/**
...
...
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