Skip to content

Commit

Permalink
Support new version of the local notification plugin (#21)
Browse files Browse the repository at this point in the history
* Support new version of the local notification plugin

+ bump up version number

* Not sure how it compiled without this

* Might as well remove whitespace changes
  • Loading branch information
shankari authored Apr 1, 2020
1 parent 1c3f25d commit 38e2ed5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
id="edu.berkeley.eecs.emission.cordova.transitionnotify"
version="1.2.0">
version="1.2.1">

<name>TransitionNotification</name>
<description>Transition notification. Specially good for trip start and trip end notifications </description>
Expand Down
4 changes: 3 additions & 1 deletion src/android/TransitionNotificationReceiver.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@

import de.appplant.cordova.plugin.localnotification.TriggerReceiver;
import de.appplant.cordova.plugin.notification.Manager;
import de.appplant.cordova.plugin.notification.Request;
import de.appplant.cordova.plugin.notification.Options;

/*
* Importing dependencies from the logger plugin
Expand Down Expand Up @@ -161,7 +163,7 @@ public void notifyEvent(Context context, String eventName, JSONObject autogenDat
}
Log.d(context, TAG, "generating notification for event "+eventName
+ " and id = " + currNotifyConfig.getLong(ID));
Manager.getInstance(context).schedule(currNotifyConfig, TriggerReceiver.class);
Manager.getInstance(context).schedule(new Request(new Options(currNotifyConfig)), TriggerReceiver.class);
} else {
Log.d(context, TAG, "notification for event "+eventName+" and id = "+currNotifyConfig.getLong(ID)
+" muted, skip");
Expand Down

0 comments on commit 38e2ed5

Please sign in to comment.