Skip to content

Commit

Permalink
Merge pull request #172 from shankari/implement_runtime_permissions
Browse files Browse the repository at this point in the history
Fix notification messages generated for foreground service notifications
  • Loading branch information
shankari authored Mar 28, 2019
2 parents 856258f + 2fa05c2 commit f1443cd
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "e-mission-data-collection",
"version": "1.3.1",
"version": "1.3.2",
"description": "Simple package that stores all the connection settings that need to be configured",
"cordova": {
"id": "e-mission-data-collection",
Expand Down
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.datacollection"
version="1.3.1">
version="1.3.2">

<name>DataCollection</name>
<description>Background data collection FTW! This is the part that I really
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public ActivityRecognitionChangeIntentService() {
@Override
public int onStartCommand(Intent intent, int flags, int startId) {
Log.d(this, TAG, "onStartCommand called with intent "+intent+" flags "+flags+" startId "+startId);
TripDiaryStateMachineForegroundService.handleStart(this, "Handling geofence event", intent, flags, startId);
TripDiaryStateMachineForegroundService.handleStart(this, "Recording activity ", intent, flags, startId);
return super.onStartCommand(intent, flags, startId);
}

Expand Down
2 changes: 1 addition & 1 deletion src/android/location/GeofenceExitIntentService.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public void onStart(Intent i, int startId) {
@Override
public int onStartCommand(Intent intent, int flags, int startId) {
Log.d(this, TAG, "onStartCommand called with intent "+intent+" flags "+flags+" startId "+startId);
TripDiaryStateMachineForegroundService.handleStart(this, "Handling geofence event", intent, flags, startId);
TripDiaryStateMachineForegroundService.handleStart(this, "Handling geofence exit ", intent, flags, startId);
return super.onStartCommand(intent, flags, startId);
}

Expand Down
2 changes: 1 addition & 1 deletion src/android/location/LocationChangeIntentService.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public void onCreate() {
@Override
public int onStartCommand(Intent i, int flags, int startId) {
Log.d(this, TAG, "onStart called with "+i+" startId "+startId);
TripDiaryStateMachineForegroundService.handleStart(this, "Handling geofence event", i, flags, startId);
TripDiaryStateMachineForegroundService.handleStart(this, "Recording location ", i, flags, startId);
return super.onStartCommand(i, flags, startId);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public void onCreate() {
@Override
public int onStartCommand(Intent i, int flags, int startId) {
Log.d(this, TAG, "onStart called with "+i+" startId "+startId);
TripDiaryStateMachineForegroundService.handleStart(this, "Handling geofence event", i, flags, startId);
TripDiaryStateMachineForegroundService.handleStart(this, "Handling geofence creation", i, flags, startId);
return super.onStartCommand(i, flags, startId);
}

Expand Down
2 changes: 1 addition & 1 deletion www/ui/ionic/js/collect-settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ angular.module('emission.main.control.collection', [])
if (ionic.Platform.isIOS()) {
cch.new_config.accuracy = cch.accuracyOptions["kCLLocationAccuracyBest"];
} else if (ionic.Platform.isAndroid()) {
accuracy = cch.accuracyOptions["PRIORITY_HIGH_ACCURACY"];
cch.new_config.accuracy = cch.accuracyOptions["PRIORITY_HIGH_ACCURACY"];
}
} else {
if (ionic.Platform.isIOS()) {
Expand Down

0 comments on commit f1443cd

Please sign in to comment.