wiebenieuwenhuis/expo-notification

Send push notifications with Expo

1.3.4 2020-11-07 18:55 UTC

This package is auto-updated.

Last update: 2024-11-08 04:00:10 UTC


README

Send notifications with the Expo API

Example

$notification = new ExpoNotification();

$result = $notification
	->to([
		'ExponentPushToken[GoVJ_qPG41_nHi-4EQS5UU]',
		'ExponentPushToken[P7yjE4MojbyaqpOiwwANgB]'
	])
	->title('test')
	->body('message')
	->data([
		'row' => 'item'
	])
	->badge(1)
	->channel('default')
	->sound('default')
	//->silent()
	//->test()
	->send();

print_r($result);