Bark: https://bark.day.app
- Copy the
bark/config/sample.env
content into your.env
- change the config in
.env
. The details are in Bark documentation
device_keys
must be set- By default, encrytion is enabled. And only support
aes-256-cbc
. - Request
/bark/test/generateKeyAndIv
to get thekey
andiv
.Set both to your.env
and Bark iOS App
- Request
/bark/test/index
to make a push test - Example:
use app\bark\service\BarkService;
BarkService::pushMsg('This is title', 'It works!', 'https://baidu.com', [
'url' => 'https://devonline.net/'
])
- OpenSSL 扩展
php -m | grep openssl