Skip to content Skip to sidebar Skip to footer

How To Send Push Notification Via Lambda By Firebase Using Python

I am trying to send a push notification from Firebase Cloud Message via AWS Lambda. The API responds with authorization error. import requests import json def lambda_handler(event,

Solution 1:

Everything is perfect - except the headers. You'll have to add 'Key=' before the actual key. See the code below :

headers = {'Content-type': 'application/json', 'Authorization':'Key=AAAA…...0HuQH'}

Post a Comment for "How To Send Push Notification Via Lambda By Firebase Using Python"