I have used this lib and followed the example.
from txfcm import TXFCMNotification
from twisted.internet import reactor
push_service = TXFCMNotification(api_key="My API key")
data_message = {
"Nick" : "Mario",
"body" : "great match",
"Room" : "PortugalVSDenmark"
}
registration_id = "My device token"
message_title = "Hello testing"
message_body = "Cool this is test message"
result = push_service.notify_single_device(registration_id=registration_id, message_title=message_title, message_body=message_body,data_message=data_message)
def got_result(result):
print(result)
#df.addBoth(got_result)
reactor.run()
But their is no response after sending push notification and also no Notification received on phone.
I have used this lib and followed the example.
But their is no response after sending push notification and also no Notification received on phone.