Skip to content

Commit

Permalink
Notification stops repeating after user clicks on notification on And…
Browse files Browse the repository at this point in the history
…roid only. #180
  • Loading branch information
EddyVerbruggen committed Jan 15, 2020
1 parent c7218f0 commit bd9f272
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion demo/app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"android": {
"v8Flags": "--expose_gc"
"v8Flags": "--expose_gc",
"markingMode": "none"
},
"main": "app.js",
"name": "tns-template-hello-world-ts",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ private void onClick(String action, Bundle bundle) throws JSONException {

LocalNotificationsPlugin.executeOnMessageReceivedCallback(opts);

if (opts.has("id") && !opts.optBoolean("ongoing", false)) {
if (opts.has("id") && !opts.optBoolean("ongoing", false) && opts.optInt("repeatInterval", 0) == 0) {
int id = opts.getInt("id");

// Clear the notification from the tray, unless it's marker as ongoing/sticky:
Expand Down
2 changes: 1 addition & 1 deletion src/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nativescript-local-notifications",
"version": "4.1.4",
"version": "4.1.5",
"description": "The Local Notifications plugin allows your app to show notifications when the app is not running. Just like remote push notifications, but a few orders of magnitude easier to set up.",
"main": "local-notifications",
"typings": "index.d.ts",
Expand Down
Binary file modified src/platforms/android/app-release.aar
Binary file not shown.

0 comments on commit bd9f272

Please sign in to comment.