davibennun / laravel-push-notification

Laravel package to enable sending push notifications to devices
1.23k stars 258 forks source link

apns DeviceCollection work? #60

Open asterism612 opened 8 years ago

asterism612 commented 8 years ago
  1. setting 100 device. $devices = PushNotification::DeviceCollection(array( PushNotification::Device('token', array('badge' => 5)), PushNotification::Device('token1', array('badge' => 1)), .... ));
  2. send. $collection = PushNotification::app('appNameIOS') ->to($devices) ->send($message);

APNS first device work when multiple device per call. others not working.

each device call work find.

mikerudoy commented 8 years ago

I see similar issue. I had 3 apns device tokens. Imagine that second token in DeviceCollection is invalid (application removed from device). In this case after push has been sent, the first device will receive notification, second wont (because on app installed), and the third will have not received, because after error with second token, Apple stops send pushes. Can I resolve the described problem using this library. Feedback service returns empty array

baboot commented 8 years ago

have the same error as mikerudoy c

oliverkaiser commented 8 years ago

have you found a solution?

abhijeetnaik commented 8 years ago

I have a similar kind of issue. i don't know if it will work or not, but try using queuing or a cron job to send out notification. Please get back to me if this works.

depsimon commented 8 years ago

Still have this issue. The only work-around I found is to avoid DeviceCollection for iOS notifications..