Chore: Firebase Cloud Messaging Support (#858)

This commit is contained in:
Sojan Jose
2020-06-05 00:15:50 +05:30
committed by GitHub
parent e783c3af5d
commit a13a474c23
7 changed files with 59 additions and 2 deletions

View File

@@ -12,6 +12,8 @@ class NotificationSubscriptionBuilder
def identifier
@identifier ||= params[:subscription_attributes][:endpoint] if params[:subscription_type] == 'browser_push'
@identifier ||= params[:device_id] if params[:subscription_type] == 'fcm'
@identifier
end
def identifier_subscription