Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion flask_pyfcm.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,26 @@
except ImportError:
from flask import _request_ctx_stack as stack

class NotificationBuilder(object):

def __init__(self):
pass

def build(self):
pass

def message_title(self, title):
pass

def message_body(self, body):
pass

def message_icon(self, icon):
pass

def message_sound(self, sound):
pass


class FCM(object):
FCM_INVALID_ID_ERRORS = [
Expand Down Expand Up @@ -39,7 +59,7 @@ def push_service(self):
return ctx.fcm_service

def notify_single_device(self, registration_id, *args, **kwargs):
self.notify_multiple_devices([registration_id], **kwargs)
return self.notify_multiple_devices([registration_id], **kwargs)

def notify_multiple_devices(self, registration_ids, **kwargs):
response = self.push_service.notify_multiple_devices(registration_ids,
Expand Down