Edujugon / PushNotification

PHP and Laravel Package to send push notifications to Android and IOS devices.
MIT License
478 stars 159 forks source link

APN service works only if 'dry_run' is set to TRUE #47

Closed Varin6 closed 6 years ago

Varin6 commented 6 years ago

If dry_run is set to 'false', it seems to send without error, but push notification is never received in the iPhone.

Edujugon commented 6 years ago

Hi @Varin6 ,

What feedback are you getting? $push->getFeedback();

Make sure you're using the production certificate. Bear in mind that APN requires different certificates for production and testing

Varin6 commented 6 years ago

Feedback comes as success, but yeah, I am using a development certificate, not production, which is what probably is the issue. (I'm PHP guy, someone else is building IOS app in Swift) Thanks for quick reply. Also, I'm using laravel 5.6 and your repo works fine with it,I thought you might want to know. I switched to your project from davibennun/laravel-push-notification which doesn't seem to be supporting rich push notifications for IOS at all. Really happy that I found this one!

["feedback":protected]=>
    object(stdClass)#1032 (3) {
      ["success"]=>
      int(1)
      ["failure"]=>
      int(0)
      ["tokenFailList"]=>
      array(0) {
      }
Edujugon commented 6 years ago

Cool, happy to hear that :)

Just let me know if you face any further issue.