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
1
vote
0 answers

Apple Wallet Not Auto Updating Pass

Finally im able to push new changed compiled bundle. There is one issue im facing in order to see new changes. i have to go in my wallet card & disable "Automatic updates" then enable. then i can see my new compiled pass card. $result =…
M.A
  • 448
  • 6
  • 21
1
vote
2 answers

Codeigniter APN.where to put the .pem file in php code

I am working on a codeigniter project which requires push notificatios to be sent to ios devices. While importing th eapn library i just can't figure out where to put the .pem file which i exported from ios app project. and also I can't figure out…
Numaan
  • 76
  • 1
  • 1
  • 6
1
vote
1 answer

Apple Push Notification Service (APNS) stops working for me

my server was sending push notification without any problems till yesterday. Then it stop without any changes made to server or code. I use php on an ubuntu system to send the notifications. Since yesterday I get this error, when…
Urkman
  • 1,298
  • 1
  • 16
  • 32
1
vote
1 answer

APNS: Invalid token causes all subsequent push notifications to fail

I'm using the Sly PHP Push Notification library, but the same thing happens whether I send all my push notifications completely manually, without the library (like in the script below). If there is an invalid token in my SQL database and I attempt…
Jameson
  • 4,198
  • 4
  • 17
  • 31
1
vote
0 answers

How to set pass phrase for yii apns-gcm

I'm using yii apns-gcm with below settings in console.php config to run as a background process. My issue is it prompt for PEM pass phrase: And when I enter the pass phrase it works. Does anyone know how to set passphrase for…
SamMLB
  • 11
  • 1
1
vote
1 answer

PHP APNS Apple Push Notifications shows different response code every request

I have a PHP script that sends push notifications to an Apple APNS server. It is supposed to echo the response code 485, which shows that the message was successfully sent. However, when I run the code, it shows a different numeric code each time,…
Wael Salah
  • 71
  • 1
  • 7
1
vote
1 answer

IOS Push notifications works locally but not on bluehost

I used the php script below to send push notifications and it's working perfect if sent from my local computer using "wamp server" I am using now bluehost services and bought a dedicated ip and they opened apns ports for me 2195 and 2196 but i am…
1
vote
0 answers

How to control not response error sending push to APNS from PHP

I'm having some problems with my implementation because it crash in a random way after 400 - 500 sendings. I was wondering why the best APNS tutorials for PHP and other platforms advice you to sleep a little (o a lot!) after sending some messages to…
EnriMR
  • 3,924
  • 5
  • 39
  • 59
1
vote
1 answer

Issuse with send notification with APNS HTTP/2 from PHP

Recent my certificate for push notification time out so I must create new certificate Universal Push Notification Client SSL Certificate. But when I update this my certificate, my php server can't push notification, Apple return error Unable to set…
vien vu
  • 4,277
  • 2
  • 17
  • 30
1
vote
1 answer

Swipe Buttons not coming for Remote notifications

I am trying to put custom buttons in my IOS 8 application for the PUSH Notifications received in my chat app. Below is my code but the Push notifications are not showing the ship buttons. if([[UIApplication sharedApplication]…
codelover
  • 1,113
  • 10
  • 28
1
vote
1 answer

Can I Use Application Web Services Which is Already Made for Android in iOS especially in push notification

Is their any difference between web services for android and iOS ?? especially if i am implementing push notification using google cloud messaging Thank you in advance
Abdul Karim
  • 4,359
  • 1
  • 40
  • 55
1
vote
1 answer

APNs unicode message from russian language

I have a problem with the Cyrillic alphabet in the message, the server is written in php, the output is the following string of 285 characters. string(285) "{"aps":{"alert":"\u041f\u0440\u043e \u0442\u0438\u043f\u044b…
user2759544
  • 181
  • 1
  • 10
1
vote
0 answers

Connect to APNS by using PHP

I am facing problem in connecting to APNS by using PHP. According to my learning so far :- Cerificate, private key and passphrase are correct because I have tested it using third party notification providers, also it works on my server for some…
Nirmal
  • 939
  • 10
  • 24
1
vote
3 answers

Apple Push Notification unable to send push on AWS EC2

I'm using simplepush.php to send Apple Push Notification to my phone. Everything works fine on localhost and my phone gets the push notification successfully. However, when i try the same thing on my AWS EC2 instance (AmazonAMI) the push…
PK.
  • 2,471
  • 3
  • 24
  • 30
1
vote
1 answer

APNS certificate .pem

I am trying to create the server side connection for apple push notifications. First, I ask from the user (who probably will be an ios dev) to give the .cer and .p12 files that Apple provides in order to make it a .pem file. Below is the .pem…