Skip to content

Commit

Permalink
💩 Turn off the background checks for fleet deployments
Browse files Browse the repository at this point in the history
Since the fleet deployments are installed on work phones, and the background restriction is apparently grayed out on android work phones.
e-mission/e-mission-docs#1070

This is a hack (hence the 💩 emoji) but it will allow us to make progress
through the onboarding, get the logs and then resolve the issue the right way.
Or if we can't figure out how to access it the right way, this can become a
config option for deployments that plan to use work phones.

This should unblock
e-mission/e-mission-docs#1070 (comment)
  • Loading branch information
shankari committed May 5, 2024
1 parent ed61b8d commit 00a4d95
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion www/js/usePermissionStatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -446,9 +446,10 @@ const usePermissionStatus = () => {
setupAndroidFitnessChecks();
if (appConfig.tracking?.bluetooth_only) {
setupAndroidBluetoothChecks();
} else {
setupAndroidBackgroundRestrictionChecks();
}
setupAndroidNotificationChecks();
setupAndroidBackgroundRestrictionChecks();
} else if (window['device'].platform.toLowerCase() == 'ios') {
setupIOSLocChecks();
setupIOSFitnessChecks();
Expand Down

0 comments on commit 00a4d95

Please sign in to comment.