wiebenieuwenhuis / expo-notification
Send push notifications with Expo
Installs: 1 504
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- php: >=7.0
Requires (Dev)
- phpunit/phpunit: 5.7.*
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);