Edujugon / PushNotification

PHP and Laravel Package to send push notifications to Android and IOS devices.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

for ios get success responce but not send in device laravel 7

darshantank1995 opened this issue · comments

{
"success": 1,
"failure": 0,
"tokenFailList": []
}

image

   $push = new PushNotification('apn');
        $response   =   $push->setMessage([
        'aps' => [
            'alert'=> "Breaking News!",
            'sound' => 'default'
        ]
    ])

      
        ->setDevicesToken(['0431e9d44cbca06e7ebcd1491ba11d5a821c94533e395a56ce9c5675b6da29e9'])
        ->send()
        ->getFeedback();

     return response()->json($response);

same problem. any solution?

if i changed dry_run to true then device get notifications even though im very sure i put certificates for production in config.

try to unblock [2197] port in server

try to unblock [2197] port in server

does this solve the problem?

same issue