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 8855639
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T14:10:53+00:00 2026-06-14T14:10:53+00:00

I am using PHP code from as many various web sites as possible, after

  • 0

I am using PHP code from as many various web sites as possible, after having written my own, and everything fails with connection to the apple push notification feedback service.

In a nutshell:

$stream_context = stream_context_create();


stream_context_set_option($stream_context, 'ssl', 'local_cert', $certkeypath);      

stream_context_set_option($stream_context, 'ssl', 'passphrase', $pass);

$apns = stream_socket_client('ssl://feedback.sandbox.push.apple.com:2196', $errcode, $errstr, 60, STREAM_CLIENT_CONNECT, $stream_context);

if(!$apns) {
 echo "ERROR $errcode: $errstr\n";
 return;
}

The above code times out 100% of all connection requests tonight.
BUT! If the address is changed from feedback.sandbox.push.apple.com to gateway.sandbox.push.apple.com, and the port is changed from 2196 to 2195, then everything works 100%, all push notifications are delivered. I deleted the app from one of my devices and continued sending it push notifications, so I have been expecting real results from feedback, but nothing.

So is there a reason why the gateway works but feedback doesn’t, it seems the only difference is the port and address. Possibly the flags, but I’m using code other people claim works.

Makes me think the APNs feedback service is down for maintenance.

  • 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-14T14:10:55+00:00Added an answer on June 14, 2026 at 2:10 pm

    Now 3 weeks later, an idea: could be a firewall?

    Sure enough, it was.

    Now, I can read the APNs Feedback without timeouts. 😀

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

Sidebar

Related Questions

I am having problems removing index.php from codeigniter-2. I remember using the same code
So I'm using the following php code to set variables that are received from
I'm using the following code to get response from a requested page using php
I'm trying to get character data from www.wowarmory.com using PHP and cURL. The code
I'm using the following code to logout from Facebook. string url = string.Format(https://m.facebook.com/logout.php?confirm=1&next={0}&access_token={1}, ConfigurationManager.AppSettings[Facebooklogout],
i have this simple code to load data from other php page using get
I am using the following code to generate excel from sql through php.this is
I am using this code to try to get json data from many json
as web developer using PHP/JS/CSS for years , i suffer from repeat myself over
I'm having trouble deleting images from a mysql database using php. The addition of

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.