Questions tagged [apns-php]

A full set of open source PHP classes to interact with the Apple Push Notification service for the iPhone, iPad and the iPod Touch.

From the project page:

A full set of open source PHP classes to interact with the Apple Push Notification () service for the devices with iOS operation system, such as iPhone, iPad and the iPod Touch.

  • Development server: api.development.push.apple.com:443

  • Production server: api.push.apple.com:443

In general APNS works in the following way:

  1. Web application sends request via HTTP/Socket connection to Apple's APNS server. The message should contain payload(what use will receive) and unique device token that was sent to the server beforehand.
  2. APNS server determines specific device and application should it sends notification to, is user allowed specific application to get the notification, etc
  3. If 2-nd item is OK, iOS receives push notification.
152 questions
5
votes
2 answers

Push notifications delivered to apple apns server but device received nothing

Development environment: iOS 9.3.2 (iPh6ne 6+) ... but it works on iOS 8.x Phonegap 6.2.7 Phonegap-plugin-push v1.7.2 PHP7 (server side)- contentpush - ref My situation: the token was delivered to my server automatically message sent to…
ziplodof.S
  • 179
  • 2
  • 9
5
votes
3 answers

Apple Multiple Push Notifications not visible in Notifications Tray

I basically want to make multiple push notifications in the same application visible in the notification tray in iOS. This scenario works if my data is on while push notification is triggered via APNS, but only the latest one is received in case I…
Geek
  • 698
  • 1
  • 6
  • 25
5
votes
2 answers

Apns php error "Failed to connect to APNS: 110 Connection timed out."

I have done apns code for php and objective c from this Apns code and setup certificate from this link Sandbox and production apns for sending notification to ios devices is working perfectly on my server.I moved code and same certificate to client…
Viral Narshana
  • 1,855
  • 2
  • 21
  • 45
5
votes
3 answers

Apple Push Notification - all messages get sent but not all get delivered

I have a problem with sending Apple Push Notifications. When I send a message to two devices only, everything is working. But When I send a message to all devices in the Database, then not all Push Message get delivered, but I get no error for any…
tablesuplex
  • 55
  • 1
  • 10
4
votes
1 answer

Where should I put the .pem files for ApnsPHP to work?

I have my two files entrust_root_certification_authority.pem and server_certificates_bundle_sandbox.pem, but I'm not sure where I should put them. I get this error : Fatal error: Uncaught exception 'ApnsPHP_Exception' with message 'Unable to read…
Thomas Joulin
  • 6,590
  • 9
  • 53
  • 88
4
votes
0 answers

APNS not deliver to device

We are using below php script to send notification to iOS device. Previously it was also working fine and iOS getting notification. but all of sudden iOS stop getting notification.
4
votes
0 answers

APNS issue about devicetoken not for topic and bad device token in PHP

I am trying to integrate the sending of APNS for VOIP using this PHP Client library: composer require edamov/pushok I followed the steps on how to provide the right value in the $options array in which I cannot disclose here. When I tried to dump…
bowmeow
  • 109
  • 1
  • 11
4
votes
0 answers

APNS should I use HTTP2 or TSL

First off, sorry if this is a bit of an off topic question. I felt like this was the best place to go for a legitimate response, seeing as you guys and gals have never let me down. So, I hired an iOS APP developer to help me with a project. I've…
Austin
  • 1,619
  • 7
  • 25
  • 51
4
votes
1 answer

APNS PHP Push Notification not working. Gets timed out

I am trying to send Push Notification on the Production environment, but its not working. Below is the code I am trying and it gets timed out. No error, no exceptions get thrown out. What is wrong in this ? Note: When I send push notification…
Subharanjan
  • 668
  • 8
  • 21
4
votes
1 answer

Send multiple Iphone notification through APNS without looping

I write web services for android and iphone apps in php. Recently in an app I had to send lots of Push notifications(around a few thousand) and realized the only good APNS method available on net by Ray Wenderlich was no more feasible for my…
4
votes
1 answer

Error message "APNS Connection Failed: 0", when trying to send push notifications to an iPhone device

// Put your device token here (without spaces): $deviceToken = 'XXXXXXXXXXXX; // Put your private key's passphrase here: $passphrase = ''; // Put your alert message here: $message = 'My first push…
Ashok
  • 41
  • 3
4
votes
1 answer

ApnsPHP: Push notifications working in development but not in production

Yes: there are many duplicates to this question, but none of the answers helped. I am following this great tutorial by Ali Hafizji on using APNS service for push notifications. Testing APNS in development mode: download aps_development.cer export…
Rok Jarc
  • 18,765
  • 9
  • 69
  • 124
4
votes
1 answer

Port 2195 open but cannot access APNS server

Problem: I cannot access APNS server. I get a 110 Connection Time Out error. My situation: I've contacted my host (hostmonster). They said my port 2195,2196 are already open. My certificate and passphrase is no problem, for I've tested it from my…
Van
  • 41
  • 1
  • 5
4
votes
1 answer

APNS notifications sent correctly but not received after a while. Why?

It's been now a week that I am searching answers for the problem I have, but I can't find anything, so I am going to ask the question here! I made an iPhone application that can send notifications to the users. So, I have a notification server,…
Talal MAZROUI
  • 645
  • 1
  • 6
  • 12
3
votes
0 answers

How to update AAACertificateServices on server to send apns?

On March 29, 2021, token and certificate-based HTTP/2 connections to the Apple Push Notification service must incorporate the new root certificate (AAACertificateServices 5/12/2020) which replaces the old GeoTrust Global CA root certificate. To…
1
2
3
10 11