We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This is my ios push notification code.I am getting success while send ios push notifications but not getting any notification .
//code for push notifiation $push = new PushNotification('apn'); $push->setMessage([ 'aps' => [ 'alert' => [ 'title' => $topic, 'body' => $body ], 'sound' => 'default', 'badge' => 1
], 'extraPayLoad' => [ 'custom' => 'My custom data', ]
]); $push->setDevicesToken($device_token); $push->send();
//apn settings 'apn' => [ 'certificate' => DIR . '/iosCertificates/pushNew.pem', 'passPhrase' => '', 'dry_run' => true, ],
// response: { "success": 1, "failure": 0, "tokenFailList": [] }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This is my ios push notification code.I am getting success while send ios push notifications but not getting any notification .
//code for push notifiation
$push = new PushNotification('apn');
$push->setMessage([
'aps' => [
'alert' => [
'title' => $topic,
'body' => $body
],
'sound' => 'default',
'badge' => 1
]);
$push->setDevicesToken($device_token);
$push->send();
//apn settings
'apn' => [
'certificate' => DIR . '/iosCertificates/pushNew.pem',
'passPhrase' => '',
'dry_run' => true,
],
// response:
{
"success": 1,
"failure": 0,
"tokenFailList": []
}
The text was updated successfully, but these errors were encountered: