We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fastapi = "^0.111.0" pyfcm = "^2.0.4" I using async_notify_multiple_devices and get error: Cannot run the event loop while another loop is running
The text was updated successfully, but these errors were encountered:
from pyfcm.async_fcm import fetch_tasks from pyfcm.baseapi import BaseAPI class FCMNotification(BaseAPI): async def send_async_request(self, params_list, timeout=5): payloads = [self.parse_payload(**params) for params in params_list] responses = await fetch_tasks( end_point=self.FCM_END_POINT, headers=self.request_headers(), payloads=payloads, timeout=timeout, ) return responses
Create a new FCM class inherit from the BaseAPI and replace async_notify_multiple_devices usages with send_async_request will resolve your issue
BaseAPI
async_notify_multiple_devices
send_async_request
Sorry, something went wrong.
No branches or pull requests
fastapi = "^0.111.0"
pyfcm = "^2.0.4"
I using async_notify_multiple_devices and get error: Cannot run the event loop while another loop is running
The text was updated successfully, but these errors were encountered: