function DemoPushDeviceListMultipleNotification() { $push = new XingeApp(00, 'secret_key'); $mess = new Message(); $mess->setExpireTime(86400); $mess->setTitle('title'); $mess->setContent('content'); $mess->setType(Message::TYPE_NOTIFICATION); $ret = $push->CreateMultipush($mess, XingeApp::IOSENV_DEV); if (!($ret['ret_code'] === 0)) { return $ret; } else { $result = array(); $deviceList1 = array('token1', 'token2', 'token3'); array_push($result, $push->PushDeviceListMultiple($ret['result']['push_id'], $deviceList1)); $deviceList2 = array('token4', 'token5', 'token6'); array_push($result, $push->PushDeviceListMultiple($ret['result']['push_id'], $deviceList2)); return $result; } }