<?php
require 'c:/xampp/htdocs/dizzartshopping/shopnest/admin/includes/fcm_helper.php';

// The token the user just gave me that works in Postman
$device_token = "c0sKzFgpS0mO24GWdDK_3j:APA91bEKA71ZuyfrTSFMY5OW3rYXb3v3MT3ILQPHGM8gusuvBjrCAt3GLGmgVvYZgoIur0hu8ZkAgRTka2ktT4LbQQLycusb6t1dk2HNZE-4GYQVTt-bfwA";

echo "Testing send with token: " . substr($device_token, 0, 20) . "...\n";

$title = "Message from Website";
$body = "This is a test from your admin panel code";

$success = sendFCMv1Notification($device_token, $title, $body);

if ($success) {
    echo "SUCCESS: Code works perfectly with this token!\n";
} else {
    echo "FAILED: Something is wrong with the PHP code even with a good token.\n";
}
?>
