Skip to content

Commit

Permalink
Merge pull request #19 from shankari/upgrade_to_api_26
Browse files Browse the repository at this point in the history
Make intents explicit so that they will be delivered properly
  • Loading branch information
shankari authored Mar 13, 2019
2 parents 79cccc9 + 673f0bc commit 07cecc7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
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.1.0">
version="1.2.0">

<name>TransitionNotification</name>
<description>Transition notification. Specially good for trip start and trip end notifications </description>
Expand Down
3 changes: 3 additions & 0 deletions src/android/TransitionNotificationReceiver.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
*/
import edu.berkeley.eecs.emission.BuildConfig;
import edu.berkeley.eecs.emission.R;


import edu.berkeley.eecs.emission.cordova.tracker.wrapper.SimpleLocation;
import edu.berkeley.eecs.emission.cordova.tracker.wrapper.Transition;
import edu.berkeley.eecs.emission.cordova.unifiedlogger.Log;
Expand Down Expand Up @@ -129,6 +131,7 @@ public void postNativeAndNotify(Context context, String genericTransition, JSONO
Intent genericTransitionIntent = new Intent();
genericTransitionIntent.setAction(genericTransition);
genericTransitionIntent.putExtras(jsonToBundle(autogenData));
genericTransitionIntent.setPackage(context.getPackageName());
context.sendBroadcast(genericTransitionIntent);
notifyEvent(context, genericTransition, autogenData);
}
Expand Down

0 comments on commit 07cecc7

Please sign in to comment.