lib/notifiable/sender.rb in notifiable-sender-0.3.1 vs lib/notifiable/sender.rb in notifiable-sender-0.3.2

- old
+ new

@@ -15,11 +15,12 @@ def send_notification_to_user(user_alias, message: nil, parameters: nil, content_available: nil) filters = [{property: "user_alias", predicate: "eq", value: user_alias}] send_notification(message: message, parameters: parameters, content_available: content_available, filters: filters) end - def send_notification(message: nil, parameters: nil, filters: nil, content_available: nil) + def send_notification(title: nil, message: nil, parameters: nil, filters: nil, content_available: nil) body = {} + body[:title] = title unless title.nil? body[:message] = message unless message.nil? body[:parameters] = parameters.to_json unless parameters.nil? body[:filters] = filters.to_json unless filters.nil? body[:content_available] = content_available unless content_available.nil? headers = {}