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-05-08 02:28:34 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);