WEB NOTIFICATION ISSUE

This commit is contained in:
Velz2020 2020-02-03 17:29:16 +05:30
parent 1a52ef6475
commit 4186268bad
2 changed files with 7 additions and 6 deletions

View File

@ -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'];

View File

@ -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));
}
}