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
3 changes: 2 additions & 1 deletion lib/ionic_push/push_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class PushService
include HTTParty
base_uri IonicPush.ionic_api_url

attr_accessor :device_tokens, :message
attr_accessor :device_tokens, :user_ids, :message

def initialize(**args)
#args.each &method(:instance_variable_set)
Expand Down Expand Up @@ -47,6 +47,7 @@ def headers
def body
{
tokens: @device_tokens,
user_ids: @user_ids,
notification: @message
}.to_json
end
Expand Down