Provides a way to send push notifications to App4Less API and obtain the application token when using the mobile app. This is not an official package supported by App4less
You can install the package via composer:
composer require nidux/app4less-push
Initialize App4Less API Client
use Nidux\App4LessPush\APIClient;
$client = new APIClient('USERNAME','PASSWORD');
Send push notifications:
$result = $client->sendPushNotification(
'TOKEN1;TOKEN2;TOKEN3',
'A NICE TTTLE',
'A VALID URL',
'utm'
);
use Nidux\App4LessPush\Utils;
$result = Utils::isApp4Less(); // True if yes
use Nidux\App4LessPush\Utils;
$token = Utils::getAppUUID();
use Nidux\App4LessPush\Utils;
$uuid = Utils::getAppUUID();