olucurious / PyFCM

Python client for FCM - Firebase Cloud Messaging (Android, iOS and Web)
http://olucurious.github.io/PyFCM/
MIT License
802 stars 204 forks source link

CERTIFICATE_VERIFY_FAILED using 'async_notify_multiple_devices' #349

Closed dnspinheiro closed 1 month ago

dnspinheiro commented 1 month ago

Using .notify() it's working fine, notifications are sent to devices. But using async_notify_multiple_devices function with service_account_file doesn't work. Displays the error CERTIFICATE_VERIFY_FAILED. Understand that the function is asynchronous, the aiohttp client needs a certificate.

I'm already using version 2.0.4

push_service = FCMNotification(service_account_file="path/google_service_fcm.json", project_id="project_id")

image

dnspinheiro commented 1 month ago

Problem only occurs in local environment, when apply in production environment, notification send normally.