python-gcm | Python client for Google Cloud Messaging for Android
kandi X-RAY | python-gcm Summary
kandi X-RAY | python-gcm Summary
Python client for Google Cloud Messaging for Android (GCM)
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Make a JSON request
- Make a HTTP POST request
- Construct the GCM payload
- Parse JSON response
- Get Retry - After - After - After header
- Group the results by a key
- Extract unsent reg ids from the info
- Makes a plaintext request
- Parse a plaintext response
- Raise a GCM error
- Sends a topic message
- Handles the response of a GCM topic response
python-gcm Key Features
python-gcm Examples and Code Snippets
Community Discussions
Trending Discussions on python-gcm
QUESTION
I am building an push notification service using https://github.com/geeknam/python-gcm
this requires an API_KEY and Registation ID of device to send message.
I have created an app on console.developers.google.com and have got the API_KEY. Now i have no clue how to get the Registration ID.
Are there dummy app(s) on installation of which it will return registration ID or something like that ?
...ANSWER
Answered 2017-Apr-12 at 07:33I have created an app on console.developers.google.com and have got the API_KEY.
You'll only be able to get a valid Server Key when you create a project in Firebase Console. API Keys (recently) generated in the Developer's Console would not work for GCM (and FCM). From the note in the docs (under Server Key):
Starting from September 2016, you can create new server keys only in the Firebase Console using the Cloud Messaging tab of the Settings panel. Existing projects that need to create a new server key can be imported in the Firebase console without affecting their existing configuration.
Are there dummy app(s) on installation of which it will return registration ID or something like that?
You'll have to create your own dummy app where you'll have to call the getToken()
to generate a Registration token (aka Registration ID). See the FCM Quickstart in GitHub.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install python-gcm
You can use python-gcm like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page