PHP notifications to iPhone

Discussion in 'PHP' started by gaurav_, Feb 4, 2014.

  1. #1
    Hello,
    I have to send notification to multiple IOS devices at once, using an array OR something like that. I'm not allowed to loop through all token devices one by one.

    Please let me know if there is way for this?

    Thanks
     
    gaurav_, Feb 4, 2014 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    Why not? As far as I'm concerned, that's the only way you can do it. You open the connection to gateway.push.apple.com:2195, then loop through each message you want to send, and write them to the open stream one by one.
     
    nico_swd, Feb 5, 2014 IP