Initial Commit

This commit is contained in:
GiacomoHome
2021-09-17 12:41:45 +02:00
commit 9001e4656e
570 changed files with 31013 additions and 0 deletions
+35
View File
@@ -0,0 +1,35 @@
<?php
class Application_Model_FcmFirebase extends App_Model_FcmFirebase
{
public function __construct()
{
parent::__construct();
}
public function sendNotificaOrdine($dati, $token)
{
$corpoNotifica = array(
'notification' => array(
'title' => $dati['Title'],
'body' => $dati['Message'],
'sound' => 'default',
//'badge' => '1'
),
'to' => $token
);
if($dati){
$corpoNotifica['data'] = array(
'action' => '',
'url' => ''
);
}
$this->postCall($corpoNotifica);
}
}