mirror of
https://github.com/easychen/pushdeer.git
synced 2025-01-10 23:15:30 +08:00
Merge branch 'easychen:main' into main
This commit is contained in:
commit
9c613eee4e
@ -81,8 +81,10 @@ function android_send($is_clip, $device_token, $text, $desp = '', $dev = true)
|
|||||||
// $message1->payload($payload); // 携带的数据,点击后将会通过客户端的receiver中的onReceiveMessage方法传入。
|
// $message1->payload($payload); // 携带的数据,点击后将会通过客户端的receiver中的onReceiveMessage方法传入。
|
||||||
$message1->extra(Builder::notifyForeground, 1); // 应用在前台是否展示通知,如果不希望应用在前台时候弹出通知,则设置这个参数为0
|
$message1->extra(Builder::notifyForeground, 1); // 应用在前台是否展示通知,如果不希望应用在前台时候弹出通知,则设置这个参数为0
|
||||||
$message1->extra(Builder::notifyEffect, 1);
|
$message1->extra(Builder::notifyEffect, 1);
|
||||||
$message1->notifyType(4);
|
$message1->extra('channel_id', 'high_system');
|
||||||
$message1->notifyId(rand(1, 100)); // 通知类型。同样的类型的通知会互相覆盖,不同类型可以在通知栏并存
|
$message1->extra('channel_name', '服务提醒');
|
||||||
|
$message1->notifyType(3);
|
||||||
|
$message1->notifyId(rand(1, 1024)); // 通知类型。同样的类型的通知会互相覆盖,不同类型可以在通知栏并存
|
||||||
$message1->build();
|
$message1->build();
|
||||||
|
|
||||||
$sender = android_sender();
|
$sender = android_sender();
|
||||||
|
Loading…
Reference in New Issue
Block a user