francesco149 / push_receiver Goto Github PK
View Code? Open in Web Editor NEWsubscribe to GCM/FCM and receive notifications in python 2/3
License: The Unlicense
subscribe to GCM/FCM and receive notifications in python 2/3
License: The Unlicense
retries)
194 req = Request(url=FCM_SUBSCRIBE, data=data.encode("utf-8"))
195 resp_data = __do_request(req, retries)
--> 196 return {"keys": keys, "fcm": json.loads(resp_data.decode("utf-8"))}
197
198
AttributeError: 'NoneType' object has no attribute 'decode'
(Assuming this project is dead, but leaving here for anyone who comes across this in the future)
One other issue I discovered is that the library doesn't maintain the connection - it doesn't respond to heartbeat requests and doesn't reconnect on failure. I'm working on a fix that will address that - it is running now, but I want to leave it going for another day or two before I submit a PR.
Thanks for the great library! I'm trying it out, and was only able to get it to work when I inserted my actual app ID into the source at push_receiver/push_receiver.py. It would be great to make it configurable in the register() command, instead.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.