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