fix: install_failure type mismatch — issue never reached GitHub
SetupActivity was sending type 'install-failure' (hyphen) but the PHP version-guard bypass list only checked for 'install_failure' (underscore). Result: if the kiosk was not on the latest released version the error was silently discarded and no GitHub issue was created. Fix: - SetupActivity: change type to 'install_failure' (underscore, consistent with KioskActivity which already used the correct name) - api/index.php: add 'install-failure' (hyphen) to the bypass list as defensive fallback so old APK builds already in the field are covered too
This commit is contained in:
+1
-1
@@ -5691,7 +5691,7 @@ function reportError(): void {
|
||||
// Exception: install/update errors are ALWAYS reported regardless of version,
|
||||
// because a device that is failing to install the update is by definition on
|
||||
// an old version — suppressing the issue is the opposite of useful.
|
||||
$installErrorTypes = ['install_download_failed', 'install_failure', 'install_packager_exception'];
|
||||
$installErrorTypes = ['install_download_failed', 'install_failure', 'install-failure', 'install_packager_exception'];
|
||||
$bypassVersionGuard = in_array($type, $installErrorTypes, true)
|
||||
|| ($context['version_guard_bypass'] ?? false);
|
||||
if (!$bypassVersionGuard && !_isLatestVersion($version)) {
|
||||
|
||||
Reference in New Issue
Block a user