Edujugon / PushNotification

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

Does not work "NotRegistered" #83

Closed yelnyafacee closed 5 years ago

yelnyafacee commented 5 years ago

I can send firebase push notification with my 'Server key' and 'Device Token' Directly from Firebase cloud message panel as well as http://pushtry.com/

but when I try it with localhost and testing server I always get ""NotRegistered"

is your plugin broken?

I am using this, and it Never work:

    $test = PushNotification::setService('fcm')
        ->setUrl('https://fcm.googleapis.com/fcm/send')
        ->setMessage([
            'notification' => [
                'title'     =>'This is the title',
                'body'      =>'This is the message',
                'priority'  => 'high'
            ]
        ])
        ->setApiKey('apikey')
        ->setDevicesToken('1 token')
                    ->send()
    ->getFeedback();

    dd($test);
yelnyafacee commented 5 years ago

I am using laravel 5.5 and "edujugon/push-notification": "^3.0",

Edujugon commented 5 years ago

Hi,

Could you provide the full response message from the feedback?

Edujugon commented 5 years ago

Closing issue since there is no response from the issue creator. Feel free to re-open it if necessary.