I am trying to send the notification to my azure notification hub using PHP. I am using these 2 classes to send out the notifications. When I try to send the notifications, I see this error
{ "message": "Error sending notificaiton: 400 msg:
Bad Request
HTTP Error 400. The request is badly formed.
My function is
public function sendNotificationHub() {
$hub = new \App\Helpers\NotificationHub('connection string', 'central US');
$message = '{"data":{"message":"Hello from PHP!"}}';
$notification = new \App\Helpers\Notfication("gcm", $message);
$hub->sendNotification($notification, null);
}