Compare commits
1 Commits
0fb3da20b9
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| ea7642f0bb |
@@ -172,6 +172,7 @@ type PushStatus = {
|
|||||||
endpoint: string;
|
endpoint: string;
|
||||||
distributors: string[];
|
distributors: string[];
|
||||||
lastFailure: string;
|
lastFailure: string;
|
||||||
|
autoStartBlocked: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Android-only section showing UnifiedPush registration status and controls. */
|
/** Android-only section showing UnifiedPush registration status and controls. */
|
||||||
@@ -196,6 +197,7 @@ function AndroidPushNotifications() {
|
|||||||
endpoint: s.endpoint || '',
|
endpoint: s.endpoint || '',
|
||||||
distributors,
|
distributors,
|
||||||
lastFailure: s.lastFailure || '',
|
lastFailure: s.lastFailure || '',
|
||||||
|
autoStartBlocked: Boolean(s.autoStartBlocked),
|
||||||
}
|
}
|
||||||
: undefined
|
: undefined
|
||||||
);
|
);
|
||||||
@@ -246,6 +248,13 @@ function AndroidPushNotifications() {
|
|||||||
</Text>
|
</Text>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
if (status.lastFailure === 'AUTO_START_BLOCKED' || status.autoStartBlocked) {
|
||||||
|
return (
|
||||||
|
<Text as="span" style={{ color: color.Critical.Main }} size="T200">
|
||||||
|
Phone is blocking auto-start for Paarrot. Open App Boot / Auto-start settings, allow Paarrot (and ntfy), then tap Reset.
|
||||||
|
</Text>
|
||||||
|
);
|
||||||
|
}
|
||||||
if (status.lastFailure) {
|
if (status.lastFailure) {
|
||||||
return (
|
return (
|
||||||
<Text as="span" style={{ color: color.Critical.Main }} size="T200">
|
<Text as="span" style={{ color: color.Critical.Main }} size="T200">
|
||||||
|
|||||||
@@ -16,6 +16,8 @@ type UnifiedPushStatus = {
|
|||||||
distributor: string;
|
distributor: string;
|
||||||
distributors: string[] | string;
|
distributors: string[] | string;
|
||||||
lastFailure?: string;
|
lastFailure?: string;
|
||||||
|
/** OEM App Boot / AUTO_START is blocking distributor broadcasts (e.g. TCL). */
|
||||||
|
autoStartBlocked?: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
type UnifiedPushEndpointEvent = {
|
type UnifiedPushEndpointEvent = {
|
||||||
|
|||||||
Reference in New Issue
Block a user