diff --git a/src/FirebaseCloudMessaging.cpp b/src/FirebaseCloudMessaging.cpp index b774fbeb..a2b7a63f 100644 --- a/src/FirebaseCloudMessaging.cpp +++ b/src/FirebaseCloudMessaging.cpp @@ -64,7 +64,7 @@ const FirebaseError FirebaseCloudMessaging::SendMessageToTopic( const FirebaseError FirebaseCloudMessaging::SendPayload( const char* payload) { std::unique_ptr client(FirebaseHttpClient::create()); - client->begin("http://fcm.googleapis.com/fcm/send"); + client->begin("https://fcm.googleapis.com/fcm/send"); client->addHeader("Authorization", auth_header_.c_str()); client->addHeader("Content-Type", "application/json");