diff --git a/android/app/src/main/java/co/backbonelabs/backbone/SessionControlService.java b/android/app/src/main/java/co/backbonelabs/backbone/SessionControlService.java index 065f94c3..282d002b 100644 --- a/android/app/src/main/java/co/backbonelabs/backbone/SessionControlService.java +++ b/android/app/src/main/java/co/backbonelabs/backbone/SessionControlService.java @@ -514,6 +514,10 @@ else if (uuid.equals(Constants.CHARACTERISTIC_UUIDS.SESSION_STATISTIC_CHARACTERI wm.putInt("slouchTime", slouchTime); EventEmitter.send(reactContext, "SessionStatistics", wm); + Intent stopIntent = new Intent(MainActivity.currentActivity, ForegroundService.class); + stopIntent.setAction(Constants.ACTIONS.STOP_POSTURE_FOREGROUND_SERVICE); + MainActivity.currentActivity.startService(stopIntent); + if (!forceStoppedSession) { errorCallBack = null;