foreach ($subscriptions as $sub) {
                    $data['registration_ids'][] = $sub['registration_id'];
                }