How to implement APNS server using Easyapns?

Asked

Viewed 91 times

0

I’m trying to use Easyapns in a project for iOS 8. But due to the fact that the project is old and there are no updates for it, I’m having problems.

More specifically, with respect to the server, which although it is correctly configured according to the video tutorial of Raphael Caixeta, presents the following problem in the log file:

10-Nov-2014 20:18:03 America/sao_paulo] PHP Fatal error: Push Badge must be either Enabled or Disabled.

1) APNS::__Construct -> File: apns.php (line 55) 2) APNS::_registerDevice -> File: class_APNS.php (line 252) 3) APNS::_triggerError -> File: class_APNS.php (line 319)

in /home/pensesof/public_html/apns/classes/class_APNS.php on line 706

Someone uses, or is using Easyapns in current projects?

  • Tiago, I developed one in Python, if it’s useful for you... feel free: https://github.com/vsouza/Bird

  • Thank you! I’ll take a look yes!!

1 answer

0


Guys, thanks for your help!

I gave up using Easyapns because it was giving a lot of trouble, and I made a reuse of the source code of the tutorial site www.raywenderlich.com.

For anyone who wants a copy of the source code of the tutorial is here: http://d1xzuxjlafny7l.cloudfront.net/downloads/SimplePush.zip

Based on this file, I created a simple server.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.