【发布时间】:2014-11-16 16:01:05
【问题描述】:
我按照教程 (http://www.raywenderlich.com/32960/apple-push-notification-services-in-ios-6-tutorial-part-1#comments) 完成了所有配置文件和 iOS 代码。我将 ck.pem 和设备令牌正确复制到 PHP 文件中。但我得到了这个奇怪的错误:
➜ SimplePush php simplepush.php simplepush.php
PHP Warning: PHP Startup: pdo_pgsql: Unable to initialize module
Module compiled with module API=20100525
PHP compiled with module API=20121212
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: pgsql: Unable to initialize module
Module compiled with module API=20100525
PHP compiled with module API=20121212
These options need to match
in Unknown on line 0
Connected to APNS
Message successfully delivered
➜ SimplePush
显示连接正常,发送成功,但我的测试设备没有收到通知。我猜是关于“pdo_pgsql”和“pgsql”的错误。我只是在我的本地机器上测试它,与数据库无关。我不知道如何解决这个问题。任何帮助将不胜感激!
【问题讨论】:
标签: php ios iphone xcode apple-push-notifications