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
64b38b60
Commit
64b38b60
authored
Dec 09, 2013
by
Sebastián Katzer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Each pending request needs a unique request code
parent
bffc9d28
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
Receiver.java
src/android/Receiver.java
+4
-1
No files found.
src/android/Receiver.java
View file @
64b38b60
...
@@ -22,6 +22,7 @@
...
@@ -22,6 +22,7 @@
package
de
.
appplant
.
cordova
.
plugin
.
localnotification
;
package
de
.
appplant
.
cordova
.
plugin
.
localnotification
;
import
java.util.Calendar
;
import
java.util.Calendar
;
import
java.util.Random
;
import
org.json.JSONException
;
import
org.json.JSONException
;
import
org.json.JSONObject
;
import
org.json.JSONObject
;
...
@@ -135,7 +136,9 @@ public class Receiver extends BroadcastReceiver {
...
@@ -135,7 +136,9 @@ public class Receiver extends BroadcastReceiver {
.
putExtra
(
OPTIONS
,
options
.
getJSONObject
().
toString
())
.
putExtra
(
OPTIONS
,
options
.
getJSONObject
().
toString
())
.
setFlags
(
Intent
.
FLAG_ACTIVITY_NO_HISTORY
);
.
setFlags
(
Intent
.
FLAG_ACTIVITY_NO_HISTORY
);
PendingIntent
contentIntent
=
PendingIntent
.
getActivity
(
context
,
0
,
intent
,
PendingIntent
.
FLAG_CANCEL_CURRENT
);
int
requestCode
=
new
Random
().
nextInt
();
PendingIntent
contentIntent
=
PendingIntent
.
getActivity
(
context
,
requestCode
,
intent
,
PendingIntent
.
FLAG_CANCEL_CURRENT
);
return
notification
.
setContentIntent
(
contentIntent
);
return
notification
.
setContentIntent
(
contentIntent
);
}
}
...
...
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