diff --git a/public/.well-known/assetlinks.json b/public/.well-known/assetlinks.json new file mode 100644 index 0000000..29df6e7 --- /dev/null +++ b/public/.well-known/assetlinks.json @@ -0,0 +1,8 @@ +[{ + "relation": ["delegate_permission/common.handle_all_urls"], + "target": { + "namespace": "android_app", + "package_name": "com.sibopay.twa", + "sha256_cert_fingerprints": ["A5:ED:D0:0A:24:5F:96:93:15:DE:D9:24:42:BD:43:00:AE:0A:65:5A:B0:88:EA:CC:94:E9:A7:98:C5:23:26:9B"] + } +}] diff --git a/screenshots/google_play_store/phone_1080x2400/01_Bienvenida_Login_SiboPay.png b/screenshots/google_play_store/phone_1080x2400/1.png similarity index 100% rename from screenshots/google_play_store/phone_1080x2400/01_Bienvenida_Login_SiboPay.png rename to screenshots/google_play_store/phone_1080x2400/1.png diff --git a/screenshots/google_play_store/phone_1080x2400/02_Acceso_Seguro_BottomSheet.png b/screenshots/google_play_store/phone_1080x2400/2.png similarity index 100% rename from screenshots/google_play_store/phone_1080x2400/02_Acceso_Seguro_BottomSheet.png rename to screenshots/google_play_store/phone_1080x2400/2.png diff --git a/screenshots/google_play_store/phone_1080x2400/04_Catalogo_Soda_Escolar.png b/screenshots/google_play_store/phone_1080x2400/3.png similarity index 100% rename from screenshots/google_play_store/phone_1080x2400/04_Catalogo_Soda_Escolar.png rename to screenshots/google_play_store/phone_1080x2400/3.png diff --git a/screenshots/google_play_store/phone_1080x2400/05_Portal_Padres_Monitoreo.png b/screenshots/google_play_store/phone_1080x2400/4.png similarity index 100% rename from screenshots/google_play_store/phone_1080x2400/05_Portal_Padres_Monitoreo.png rename to screenshots/google_play_store/phone_1080x2400/4.png diff --git a/screenshots/google_play_store/phone_1080x2400/06_Punto_Venta_POS_Soda.png b/screenshots/google_play_store/phone_1080x2400/5.png similarity index 100% rename from screenshots/google_play_store/phone_1080x2400/06_Punto_Venta_POS_Soda.png rename to screenshots/google_play_store/phone_1080x2400/5.png diff --git a/server/server.js b/server/server.js index a59125a..bae978a 100644 --- a/server/server.js +++ b/server/server.js @@ -118,13 +118,20 @@ app.get('/desktop-preview.html', (req, res) => { res.redirect(301, '/'); }); +// Android Digital Asset Links para TWA (Google Play Store) +app.get(['/.well-known/assetlinks.json', '/.well-known/assetlinks'], (req, res) => { + res.setHeader('Content-Type', 'application/json'); + res.sendFile(path.join(__dirname, '../public/.well-known/assetlinks.json')); +}); + // Servir archivos estáticos con compresión y caché optimizado para PWA app.use(express.static(path.join(__dirname, '../public'), { + dotfiles: 'allow', etag: true, maxAge: '1d', setHeaders: (res, filePath) => { // Para HTML y Service Worker: siempre revalidar para garantizar actualizaciones inmediatas - if (filePath.endsWith('.html') || filePath.endsWith('sw.js') || filePath.endsWith('manifest.json')) { + if (filePath.endsWith('.html') || filePath.endsWith('sw.js') || filePath.endsWith('manifest.json') || filePath.includes('assetlinks.json')) { res.setHeader('Cache-Control', 'no-cache, must-revalidate'); } else { // Para CSS, JS, imágenes y fuentes: permitir caché con stale-while-revalidate para arranque instantáneo