Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function newRidePush() {
- $responseData['status'] = "0";
- $responseData['data'] = array();
- $responseData['message'] = "Added Successfully";
- $rows = $this->ridePushing();
- $notificationMsg="New Driver Wanted!";
- for($i = 0; $i < $row; $i++){
- $this->sendPushNotification($row['vDeviceToken'], $notificationMsg, $generatePayloadData, $notificationType);
- echo $row;
- }
- je($responseData);
- }
- function ridePushing() {
- $sql = "SELECT `vDeviceToken` from tbl_user where `vDriverorNot` = 'driver'";
- $query = $this->db->query($sql);
- $rows = $query->row_array();
- return $rows;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement