wiebenieuwenhuis / expo-notification
使用Expo发送推送通知
1.3.4
2020-11-07 18:55 UTC
Requires
- php: >=7.0
Requires (Dev)
- phpunit/phpunit: 5.7.*
README
使用Expo API发送通知
示例
$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);