Fix: iOS-Warnung bei Routenstart — Display wach lassen, GPS stoppt sonst (SW by-v656)
This commit is contained in:
parent
ccb92254b6
commit
5b73443d0a
4 changed files with 21 additions and 6 deletions
|
|
@ -93,9 +93,9 @@
|
|||
</script>
|
||||
|
||||
<!-- CSS: Reihenfolge ist wichtig — ?v= zwingt Browser zur Neuladung -->
|
||||
<link rel="stylesheet" href="/css/design-system.css?v=655">
|
||||
<link rel="stylesheet" href="/css/layout.css?v=655">
|
||||
<link rel="stylesheet" href="/css/components.css?v=655">
|
||||
<link rel="stylesheet" href="/css/design-system.css?v=656">
|
||||
<link rel="stylesheet" href="/css/layout.css?v=656">
|
||||
<link rel="stylesheet" href="/css/components.css?v=656">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
|
@ -562,7 +562,7 @@
|
|||
<script src="/js/api.js?v=94"></script>
|
||||
<script src="/js/ui.js?v=94"></script>
|
||||
<script src="/js/app.js?v=94"></script>
|
||||
<script src="/js/worlds.js?v=655"></script>
|
||||
<script src="/js/worlds.js?v=656"></script>
|
||||
|
||||
<!-- Feature-Seiten werden lazy geladen -->
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
Router, State-Management, Navigation, Initialisierung.
|
||||
============================================================ */
|
||||
|
||||
const APP_VER = '655'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
|
||||
const APP_VER = '656'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
|
||||
const APP_VERSION = '1.3.0'; // ← semantische Version, wird bei make release gesetzt
|
||||
const IS_STAGING = location.hostname === 'staging.banyaro.app';
|
||||
|
||||
|
|
|
|||
|
|
@ -695,6 +695,21 @@ window.Page_routes = (() => {
|
|||
_recActive = true;
|
||||
_recTrack = []; _recDistKm = 0; _recStartTime = Date.now();
|
||||
|
||||
// iOS-Hinweis: Display muss wach bleiben
|
||||
if (/iPad|iPhone|iPod/.test(navigator.userAgent)) {
|
||||
const banner = document.createElement('div');
|
||||
banner.style.cssText = 'position:absolute;top:0;left:0;right:0;z-index:960;' +
|
||||
'background:rgba(30,30,30,0.92);color:#fff;font-size:13px;line-height:1.4;' +
|
||||
'padding:10px 14px;display:flex;align-items:flex-start;gap:10px;' +
|
||||
'border-bottom:1px solid rgba(255,255,255,0.1)';
|
||||
banner.innerHTML = `
|
||||
<svg style="width:18px;height:18px;flex-shrink:0;margin-top:1px;color:#f59e0b" aria-hidden="true">
|
||||
<use href="/icons/phosphor.svg#warning"></use></svg>
|
||||
<span><strong>Display wach lassen!</strong> Auf iPhone stoppt die GPS-Aufzeichnung, wenn das Display ausgeht — Helligkeit hochsetzen oder Bildschirm nicht sperren.</span>`;
|
||||
document.getElementById('rk-rec-map-wrap')?.appendChild(banner);
|
||||
setTimeout(() => banner.remove(), 9000);
|
||||
}
|
||||
|
||||
const ctrl = document.getElementById('rk-rec-ctrl');
|
||||
ctrl.innerHTML = `
|
||||
<button id="rk-rec-stopbtn" style="${_btnStyle()}flex:1;border-color:var(--c-danger);background:var(--c-danger);color:#fff;position:relative;overflow:hidden;touch-action:none;user-select:none;">
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
Offline-Cache + Push Notifications + Tile-Cache
|
||||
============================================================ */
|
||||
|
||||
const CACHE_VERSION = 'by-v655';
|
||||
const CACHE_VERSION = 'by-v656';
|
||||
const CACHE_STATIC = `${CACHE_VERSION}-static`;
|
||||
const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten
|
||||
const CACHE_API = 'ban-yaro-api-v1'; // API-Response-Cache
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue