From 4186268badaa32fca6bd4461ae5649b682f8777f Mon Sep 17 00:00:00 2001 From: Velz2020 Date: Mon, 3 Feb 2020 17:29:16 +0530 Subject: [PATCH] WEB NOTIFICATION ISSUE --- api/application/controllers/PD_Controller.php | 3 +++ api/application/helpers/push_notification_helper.php | 10 ++++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/api/application/controllers/PD_Controller.php b/api/application/controllers/PD_Controller.php index bb1ce919..509069af 100644 --- a/api/application/controllers/PD_Controller.php +++ b/api/application/controllers/PD_Controller.php @@ -5867,6 +5867,9 @@ public function getPDFormDetailsJSON_post() //$this->load->helper('applicantname_grabber'); // print_r(APPLICANTNAME_GRABBER::getLatestApplicantsName(1390));die(); //satellite_image::getSatelliteImage(1442);die(); + // $this->load->helper('push_notification'); + // PUSH_NOTIFICATION::notifyWeb("fJJeUjCWSSs:APA91bHJIHVBJ4KuBbz5sEQSTXG171KpUyraekuejPedkCVrFrULvh8R8JmIHZlovA3QJogr007Yv6IN0Bhja_oBScMBFS2MAWAyPOWLDwsY-OeoPbOx8vzNalvJ7yt0jcB_atJcTbAD","The New PD 255 has been triggered...",array());die(); + // print_r($this->db->error());die(); set_time_limit(60); $records = $this->post('records'); $pdid = $records['pd_id']; diff --git a/api/application/helpers/push_notification_helper.php b/api/application/helpers/push_notification_helper.php index dd0d700a..39a7c15a 100644 --- a/api/application/helpers/push_notification_helper.php +++ b/api/application/helpers/push_notification_helper.php @@ -29,8 +29,8 @@ class PUSH_NOTIFICATION 'title'=> $msg, 'body'=> $msg, - 'icon' => 'https://ssa.sineedge.com/logo/sinelogo.png', - 'img' => 'https://ssa.sineedge.com/logo/sinelogo.png' + 'icon' => 'https://pdgenie.com/logo/sinelogo.png', + 'img' => 'https://pdgenie.com/logo/sinelogo.png' ); @@ -48,8 +48,8 @@ class PUSH_NOTIFICATION 'tickerText'=> $msg, 'vibrate'=>1, 'sound'=>1, - 'largeIcon'=>'https://ssa.sineedge.com/logo/sinelogo.png', - 'smallIcon'=>'https://ssa.sineedge.com/logo/sinelogo.png' + 'largeIcon'=>'https://pdgenie.com/logo/sinelogo.png', + 'smallIcon'=>'https://pdgenie.com/logo/sinelogo.png' ); self::dispatchNotification(array($mob_token),$app_msg,2,$additional_data); @@ -80,8 +80,6 @@ class PUSH_NOTIFICATION $result = curl_exec($ch ); curl_close( $ch ); $CI =&get_instance(); - // print_r($result); - // die(); MYLOG::logFunction(null,$additional_data['pd_id'])->info("PUSH NOTIFICATION ",array('firebase_result' => $result,'additional_data' => $additional_data,'token_type' => ($type == 1? 'WEB' : 'MOB'),'token' => $token)); } }