Skip to content

send push to multiple tokens  #81

Description

@lgmkr

Hi, guys, so I have question. What is the rigth way to send push notifications to array of tokens ?
Example, input array ["token1", "token2", "token3"]
What I do

["token1", "token2", "token3"].each do |token|
   APN.notify_async(token, options blah blah)
end

I think this is not a right way to send multiple notifications. Because each time created new persistent connection to apn socket. Or connection always opened ? Please correct me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions