Is it possible to send a notification from php server side to Visual Basic or do I have to synchronize the server side database with the local database every x minutes to check for any changes?
<?php
require("connection.php");
include 'send_notification.php';
if (!$conn) {
$response["response"] = false;
$response["log"] = mysqli_error($conn);
$response["exception"] = 1;
echo json_encode($response);
} else {
$pricing = json_decode($_POST['pricing'], true);
$user = json_decode($_POST['user'], true);
// Here update database....
$company_token = getCompanyToken($user["id"]); // Find company token from MySql database to send FCM to Android Client
sendNotification($company_token); // Send Notification To Android...It works fine..
// Same notification to Visual Basic Windows Client...
// Help!! Synchronize local database with the server or is there any other way?
}
mysqli_close($conn);
}
?>