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
2
votes
2 answers

PHP Apple APNS Read IMMEDIATE Notification Status_code

for the past 3 days i have been trying to make things work with my php code and apns. So far i'm able to deliver notifications (i only have one device so i don't know if this is working for multiple devices). When i try to test sending one…
FEST
  • 813
  • 2
  • 14
  • 37
2
votes
1 answer

Notification cron in PHP for iOS Application

I can send notification manually as following code.
India
  • 130
  • 7
2
votes
1 answer

Apple Push Notification Hebrew

I am using Apns-PHP for sending push notification to IOS devices, below is the link of open source code which I have applied. http://code.google.com/p/apns-php It is working fine for English text messages however, for Hebrew text message sometimes…
Himanshu Ingole
  • 55
  • 2
  • 11
2
votes
0 answers

Cannot generate APN SSL certificate for push

I have been trying to generate the APN SSL certificate for days. After I select the certificate request in the file browser and press the "Generate" button in the developer portal. Nothing happens. There is no errors and no messages. It just hangs…
jin
  • 114
  • 2
  • 12
2
votes
2 answers

Apple apns 'Permission denied' issue

I am facing an issue while sending request to server for push notification. While trying to connect to apple server we are getting the following response, ApnsPHP[15748]: INFO: Trying ssl://gateway.sandbox.push.apple.com:2195... Tue, 15 Jan 2013…
Venu V
  • 73
  • 5
2
votes
2 answers

How to save all DeviceTokens in php server for APNS iPhone app?

Am integrating APNS in my iPhone app. I have walked through on Apple Push Notification document provided from Apple. I have a doubt on server side. Please find my doubts below, 1. Apple said to create a server from below steps, Installing the…
Yuvaraj.M
  • 9,741
  • 16
  • 71
  • 100
2
votes
2 answers

Why iPhone don't receive push notification?

I really don't know where is the problem. I am using library ApnsPHP to sending Push notifications. I also tried other scripts, but that also not working. I generate push certificates with this tutorial…
2
votes
1 answer

How to post push notifications in APNS and how to show the notifications in iPhone?

I have several doubts about APNS. Am trying myself to make clear on the APNS but still need some clarifications. I have to know how we are posting push notification in APN Server and how we push the notification to Apple APN Server? And also how am…
Gopinath
  • 5,392
  • 21
  • 64
  • 97
1
vote
0 answers

IOS push notification issue with APNS

I am trying to send a push notification to an IOS device, the PHP code is as below $http2ch = curl_init(); curl_setopt($http2ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2_0); $apnsCert = config('constant.APNS_CERT'); $pushData =…
Ronak Solanki
  • 341
  • 2
  • 5
  • 14
1
vote
1 answer

HTTP2 based APNS request response is success despite uninstalling the app

I was able to get the right info after a successful APNS request, whether the device token is invalid or not. Lately, I realized that even though the user uninstalled the app, I get a "200 success" response from the APNS server. Did something…
Utku Dalmaz
  • 9,780
  • 28
  • 90
  • 130
1
vote
1 answer

APNS shows just one pending notification

I 've successfully implemented push notification service for my ios app. I 've generated the required certificates and the code works. The problem arises when the device is disconnected from the internet and receives some notifications (which are…
1
vote
1 answer

Push notification work on browser doesn't on commandline

I have php file for running apns. And it does work when i call web page on browser. However it doesn't work on terminal with calling php deneme.php I comfirm that .pem file is correctly created. And also determine its location in php file is…
Antiokhos
  • 2,944
  • 5
  • 23
  • 32
1
vote
2 answers

Sending Apple Push notifications to safari browsers using the HTTP/2.0 protocol - is this supported or only works for iOS

I would like to upgrade a system that currently sends out apple push notifications specifically to safari browsers. The current system uses the old binary API for communicating with APNS. Due to payload limits in the older version I would really…
Emma
  • 323
  • 3
  • 16
1
vote
2 answers

iOS Notifications are not receiving that are sent from the server

First of all may be it will be a duplicate question, but due to curiosity I have asked. I have an application in which push notifications are used, I have prepared, created all the required things for it and at last I have checked the notifications…
1
vote
0 answers

Mac OSX, Safari Push Notification: Generate Push Package from Tokens instead of Certificates

As per apple, we can now take advantage of a simpler method of authentication by using tokens instead of certificates when sending push notifications. Here As per documentation, for generating Push Package we need a Signature file which is PKCS #7…