Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7969191
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T07:11:53+00:00 2026-06-04T07:11:53+00:00

I am using PHP to connect to apns to send some notifications to multiple

  • 0

I am using PHP to connect to apns to send some notifications to multiple devices, although the question is more conceptual so it doesn’t have to be specific to PHP. I will be sending to about 7000 devices (and growing) all at the same time. My process runs ONCE per day and broadcasts to all devices, so I am not constantly re-opening a connection.

open connection to apple  
loop over device tokens  
    create payload aggregating all devices  
end loop  
write to socket ONCE with whole payload for 7000 devices  
close connection

Can I do like above pseudo-code?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T07:11:53+00:00Added an answer on June 4, 2026 at 7:11 am

    Correct Approach here is,

    you can open the connection.
    perform as many writes as you like.
    just make sure you check the connection status after each write
    close the connection.
    

    As each write is considered as a message specific to device, you can write one message at a time. But you can open a connection once and write as many you can.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using PHP to connect to apn s to send some notifications to
I'm trying to connect to my server using php script to upload some files...
I am using php and mysql. i have a question, lets say, I have
I have been trying to connect to mysql all evening using PHP. I know
I am using a PHP script to send push notifications to my device. Here
I have been using php-sdk to connect to facebook for a while and I
I'm using NuSOAP and PHP to connect to a web service (WSDL) and I
I am trying to build a Connect app using PHP and the Zend Framework.
I am integration Facebook connect in my website using php SDK.. Everything is working
i need to know how can i connect telephone using php languages

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.