Skip to content

Message send not recived. #12

Description

@shanvaz123

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions