diff --git a/src/android/location/actions/GeofenceLocationIntentService.java b/src/android/location/actions/GeofenceLocationIntentService.java index 97ee9a0..28e05f9 100644 --- a/src/android/location/actions/GeofenceLocationIntentService.java +++ b/src/android/location/actions/GeofenceLocationIntentService.java @@ -13,6 +13,7 @@ import java.util.List; import java.util.Objects; +import edu.berkeley.eecs.emission.cordova.tracker.ExplicitIntent; import edu.berkeley.eecs.emission.cordova.unifiedlogger.Log; /** @@ -111,8 +112,7 @@ protected void onHandleIntent(Intent intent) { } private void broadcastLoc(Location loc) { - Intent answerIntent = new Intent(INTENT_NAME); - answerIntent.setPackage(this.getPackageName()); + Intent answerIntent = new ExplicitIntent(this, INTENT_NAME); answerIntent.putExtra(INTENT_RESULT_KEY, loc); Log.i(this, TAG, "broadcasting intent "+answerIntent); LocalBroadcastManager.getInstance(this).sendBroadcast(answerIntent); diff --git a/src/android/verification/SensorControlBackgroundChecker.java b/src/android/verification/SensorControlBackgroundChecker.java index 22007fe..b2f841a 100644 --- a/src/android/verification/SensorControlBackgroundChecker.java +++ b/src/android/verification/SensorControlBackgroundChecker.java @@ -107,7 +107,6 @@ public static void checkAppState(final Context ctxt) { SensorControlChecks.checkLocationPermissions(ctxt), SensorControlChecks.checkIgnoreBatteryOptimizations(ctxt), SensorControlChecks.checkMotionActivityPermissions(ctxt), - SensorControlChecks.checkNotificationsEnabled(ctxt), }; boolean allOtherChecksPass = true; for (boolean check: allOtherChecks) { diff --git a/src/ios/Verification/SensorControlBackgroundChecker.m b/src/ios/Verification/SensorControlBackgroundChecker.m index 8c36e50..c3761af 100644 --- a/src/ios/Verification/SensorControlBackgroundChecker.m +++ b/src/ios/Verification/SensorControlBackgroundChecker.m @@ -47,8 +47,7 @@ +(void)checkAppState @([TripDiarySensorControlChecks checkLocationSettings]), @([TripDiarySensorControlChecks checkLocationPermissions]), @([TripDiarySensorControlChecks checkMotionActivitySettings]), - @([TripDiarySensorControlChecks checkMotionActivityPermissions]), - @([TripDiarySensorControlChecks checkNotificationsEnabled]) + @([TripDiarySensorControlChecks checkMotionActivityPermissions]) ]; BOOL allChecksPass = TRUE; for (NSNumber* check in allChecks) {