cable / expo-php-sdk
Expo Notificiton Sender sdk
Installs: 4 942
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
This package is not auto-updated.
Last update: 2024-11-21 18:44:15 UTC
README
include 'vendor/autoload.php';
// set your users $users = (new \Cable\Expo\ExpoUserBag())->setUsers(array( 'YourToken' )); $expo = new \Cable\Expo\ExpoSdk(); $expo->setUsers($users); // create your message $message = \Cable\Expo\ExpoMessage::create('Test Mesaj', 'test icerik')->enableSound(); // send messages $expo->notify($message, function (\Cable\Expo\ExpoSentMessage $message) { var_dump($message->getToken(), $message->isSucceed()); });