@dfeidao/atom-mobile > push推送通知
External module: push推送通知
Index
Interfaces
Functions
Functions
push
▸ push(fd: IFeidaoAiMobile
, options: ILocalNotificationOptions, action: string
): Promise
<void
>
Defined in push/push.ts:44
see: 文档 发送本地通知
example:
import push from '@dfeidao/atom-mobile/push/push';
await push(fd, {
buildId: 1,
id: 1,
content: 'content',
extra: { key1: 'value1', key2: 'value2' },
fireTime: new Date().getTime() + 3000,
title: 'title'
}, 'a001');
Parameters:
Name | Type | Description |
---|---|---|
fd | IFeidaoAiMobile |
系统参数 |
options | ILocalNotificationOptions | 推送消息 |
action | string |
点击推送事件 |
Returns: Promise
<void
>