πŸ” Debug Push Notifications

Verifica dello stato del sistema di notifiche push

πŸ“¦ Estensioni PHP

PDO Database (pdo)βœ“ Caricata
SQLite Database (pdo_sqlite)βœ“ Caricata
JSON Support (json)βœ“ Caricata
cURL (per WebPush) (curl)βœ“ Caricata
OpenSSL (per VAPID) (openssl)βœ“ Caricata

πŸ“‚ File e Directory

push_subscriptions.db
Database subscription VAPID
βœ“ Esiste (40960 bytes)
push_register_vapid.php
Registrazione push (VAPID)
βœ“ Esiste (11902 bytes)
send_push_user.php
Invio push 1-to-1 (VAPID)
βœ“ Esiste (16267 bytes)
trace_reply.php
Tracciamento/relay risposta push
βœ“ Esiste (5518 bytes)
vendor/autoload.php
Autoloader
βœ“ Esiste (796 bytes)
vendor/minishlink/web-push/src/WebPush.php
Libreria WebPush
βœ“ Esiste (15249 bytes)

πŸ—„οΈ Database SQLite

βœ“ Database trovato

Tabelle:

Subscription registrate: 1

Top telefoni (count): 3397438926 (1)

IDEndpointTelefonoUser IDData
80*** endpoint nascosto ***3397438926112232026-02-11 17:58:53

πŸ”‘ Chiavi VAPID

Subject: mailto:info@puschpromozioni.it

Chiave pubblica:

BO9oLkE1wm8woT27nEv8T1RWhr-sBspcIvEIUwfUYUemA1D3LMmndWUE1YI9YGeKPxccsWf33TQc6WwkB2Gbbao

Chiave privata:

nsqxJAj4zlLOr-PXrJ4w...

Le chiavi sono caricate da config/vapid.json

πŸ“‘ Flow end-to-end

βœ“ DB OK | βœ“ 1 subscription | βœ“ VAPID config

EndpointStato
vapid_keys.phpβœ“ HTTP 200
push_register_vapid.phpβœ“ HTTP 405
send_push_user.phpβœ“ HTTP 400
trace_reply.phpβœ“ HTTP 400
vendor/autoload.phpβœ“ presente (locale)

Accesso file critici:

FileStato
config vapid.json
/root/push/ristorantemimmo1/PRENOTAZIONI/../config/vapid.json
βœ“
DB subscriptions
/root/push/ristorantemimmo1/PRENOTAZIONI/push_subscriptions.db
βœ“
Service Worker
/root/push/ristorantemimmo1/PRENOTAZIONI/sw-toilet-001-v2.js
βœ—
API invio push VAPID (broadcast)
/root/push/ristorantemimmo1/PRENOTAZIONI/send_push_user.php
βœ“
Relay/trace reply
/root/push/ristorantemimmo1/PRENOTAZIONI/trace_reply.php
βœ“
Registrazione subscription
/root/push/ristorantemimmo1/PRENOTAZIONI/push_register_vapid.php
βœ“
Autoload Composer (sempre presente)
/root/push/ristorantemimmo1/PRENOTAZIONI/vendor/autoload.php
βœ“

Ultimi invii:

2026-01-30 14:19:04 | CURL | user_id: 34529 | telefono: 3486374897 | title: RISTORANTE DA MIMMO | body: In admin_promo-toilet-001.html, nella funzione sendPushVapid alla riga che fa fetch(PUSH_URL, ...), cambia PUSH_URL in '/app/ristorantemimmo1/PRENOTAZIONI/send_push_vps_broadcast.php'. NON toccare il resto del codice. | endpoint: https://fcm.googleapis.com/fcm/send/d5IotUdniLI:AP... | HTTP: 201 | Response: 
2026-01-30 14:24:06 | CURL | user_id: 34529 | telefono: 3486374897 | title: RISTORANTE DA MIMMO | body: In admin_promo-toilet-001.html, nella funzione sendPushVapid alla riga che fa fetch(PUSH_URL, ...), cambia PUSH_URL in '/app/ristorantemimmo1/PRENOTAZIONI/send_push_vps_broadcast.php'. NON toccare il resto del codice. | endpoint: https://fcm.googleapis.com/fcm/send/d5IotUdniLI:AP... | HTTP: 201 | Response: 
2026-01-30 14:29:04 | CURL | user_id: 34529 | telefono: 3486374897 | title: RISTORANTE DA MIMMO | body: In admin_promo-toilet-001.html, nella funzione sendPushVapid alla riga che fa fetch(PUSH_URL, ...), cambia PUSH_URL in '/app/ristorantemimmo1/PRENOTAZIONI/send_push_vps_broadcast.php'. NON toccare il resto del codice. | endpoint: https://fcm.googleapis.com/fcm/send/d5IotUdniLI:AP... | HTTP: 201 | Response: 
2026-01-30 14:34:06 | CURL | user_id: 34529 | telefono: 3486374897 | title: RISTORANTE DA MIMMO | body: In admin_promo-toilet-001.html, nella funzione sendPushVapid alla riga che fa fetch(PUSH_URL, ...), cambia PUSH_URL in '/app/ristorantemimmo1/PRENOTAZIONI/send_push_vps_broadcast.php'. NON toccare il resto del codice. | endpoint: https://fcm.googleapis.com/fcm/send/d5IotUdniLI:AP... | HTTP: 201 | Response: 
2026-01-30 14:39:04 | CURL | user_id: 34529 | telefono: 3486374897 | title: RISTORANTE DA MIMMO | body: In admin_promo-toilet-001.html, nella funzione sendPushVapid alla riga che fa fetch(PUSH_URL, ...), cambia PUSH_URL in '/app/ristorantemimmo1/PRENOTAZIONI/send_push_vps_broadcast.php'. NON toccare il resto del codice. | endpoint: https://fcm.googleapis.com/fcm/send/d5IotUdniLI:AP... | HTTP: 201 | Response: 

πŸ§ͺ Test API (send_push_user.php)

Per un test piΓΉ completo puoi anche aprire test/test_push.php (usa il campo telefono o lascia vuoto per la modalitΓ  broadcast) e inviare la push direttamente dal browser/server.

Invia notifica di test (broadcast o selettivo con telefono):