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
dc5089c9
Commit
dc5089c9
authored
Dec 27, 2013
by
Sebastián Katzer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Callbacks are called with the ID as a number and not as a string
parent
c2daf399
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
README.md
README.md
+2
-1
Receiver.java
src/android/Receiver.java
+2
-1
ReceiverActivity.java
src/android/ReceiverActivity.java
+1
-1
No files found.
README.md
View file @
dc5089c9
...
...
@@ -54,11 +54,12 @@ More informations can be found [here](https://build.phonegap.com/plugins/331).
-
[
bugfix:
]
`cancel`
on iOS did not work.
-
[
enhancement:
]
Added 'hourly' as a new repeat time aliase.
-
[
feature:
]
Repeat with custom intervals on Android.
-
**[bugfix:]**
Callbacks are called with the ID as a number and not as a string.
#### Version 0.6.3 (12.12.2013)
-
[
bugfix:
]
Black screen on Android.
-
[
bugfix:
]
App throws an error on reboot on Android.
-
Calling
`cancel`
on Android with an invalid String as ID does not throw an error anymore.
-
[
enhancement:
]
Calling
`cancel`
on Android with an invalid String as ID does not throw an error anymore.
#### Version 0.6.2 (04.12.2013)
-
Release under the Apache 2.0 license.
...
...
src/android/Receiver.java
View file @
dc5089c9
...
...
@@ -183,7 +183,7 @@ public class Receiver extends BroadcastReceiver {
// after reboot, LocalNotification.webView is always null
// may be call foreground callback later
if
(!
TextUtils
.
isEmpty
(
function
)
&&
LocalNotification
.
webView
!=
null
)
{
LocalNotification
.
webView
.
sendJavascript
(
function
+
"("
+
options
.
getId
()
+
"
)"
);
LocalNotification
.
webView
.
sendJavascript
(
"setTimeout('"
+
function
+
"(\""
+
options
.
getId
()
+
"\")',0
)"
);
}
}
}
\ No newline at end of file
src/android/ReceiverActivity.java
View file @
dc5089c9
...
...
@@ -76,7 +76,7 @@ public class ReceiverActivity extends Activity {
// after reboot, LocalNotification.webView is always null
// may be call background callback later
if
(!
TextUtils
.
isEmpty
(
function
)
&&
LocalNotification
.
webView
!=
null
)
{
LocalNotification
.
webView
.
sendJavascript
(
"setTimeout('"
+
function
+
"(
"
+
options
.
getId
()
+
")',0)"
);
LocalNotification
.
webView
.
sendJavascript
(
"setTimeout('"
+
function
+
"(
\""
+
options
.
getId
()
+
"\
")',0)"
);
}
}
}
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