Answer the question
In order to leave comments, you need to log in
How to determine when to send a push notification?
Good night, Toaster :)
There is a web-face on which I create a video course and bind it to a specific user. There are days (dates) in the video course when you need to send a push notification to the user.
I send it like this:
from gcm import GCM
from project.settings import GCM_APIKEY
gcm = GCM(GCM_APIKEY)
data = {"Hello": "World!"}
reg_id = ['...']
gcm.json_request(registration_ids=reg_id, data=data)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question