PushNotification icon indicating copy to clipboard operation
PushNotification copied to clipboard

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

Open darshantank1995 opened this issue 4 years ago • 4 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);

darshantank1995 avatar Oct 14 '20 13:10 darshantank1995

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.

mamomia avatar Nov 10 '20 08:11 mamomia

try to unblock [2197] port in server

darshantank1995 avatar Nov 10 '20 09:11 darshantank1995

try to unblock [2197] port in server

does this solve the problem?

daniellaurel avatar Nov 24 '20 10:11 daniellaurel

same issue

nikulvnnovate7 avatar Jun 11 '21 10:06 nikulvnnovate7