public function sendIosNotification($devices, $data) { foreach ($devices as $deviceToken) { $body['aps'] = array('badge' => 1, 'alert' => $data, 'sound' => 'default'); $apns = new Apns(); $apns->sendAppleNotification($deviceToken, $body); } }