|
<b>Fatal error</b>: Call to undefined method PushPayload::iosNotification() in
<b>Fatal error</b>: Call to undefined method PushPayload::androidNotification() in
$client = new \JPush($app_key, $master_secret);
$push_payload = $client->push()
->setPlatform(['ios', 'android'])
->addAlias(['1','55'])
->setNotificationAlert('Hi, JPush155')
->iosNotification('Hello IOS', array(
'sound' => 'sound.caf',
// 'badge' => '+1',
// 'content-available' => true,
// 'mutable-content' => true,
'category' => 'jiguang',
'extras' => array(
'key' => 'value',
'jiguang'
),
));
$response = $push_payload->send(); |
|