Edujugon / PushNotification

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

Android Push Notification suddenly stop working. #14

Closed ZaffJa closed 7 years ago

ZaffJa commented 7 years ago

image

I have not change anything at all. It just stop working. Before this it works like a charm. Maybe I'm missing something here...

PushNotification::setService('fcm')
        ->setMessage([
            'notification' => [
                'title' => "hello",
                'body' => "haiii",
                'sound' => 'default'
            ],
            'data' => [
                'extraPayLoad1' => 'value1',
                'extraPayLoad2' => 'value2'
            ]
        ])
        ->setApiKey('My api key')
        ->setDevicesToken('My device token')
        ->send()
        ->getFeedback()
Edujugon commented 7 years ago

Hi,

Have you tried with another device token aside from that one of the example?

As per the attached response, it looks like firebase has not that device token anymore in its list.

One approach could be to uninstall the app and install it back again.

Let me know if you're facing the same issue after that.

ZaffJa commented 7 years ago

Thank you for the response. I register a new user and the push notifications are working again. It did not work for other device tokens aside from the newer ones. It is kind of strange that push service did not work for older device tokens now.