当地的通知
这个插件允许你在设备上显示本地通知
困在科尔多瓦问题上?

如果您正在构建一个严肃的项目,您就不能花时间进行故障排除。betway东盟体育appIonic的专家为社区插件和高级插件提供优质的咨询服务。
安装
betway东盟体育app必威滚球分析软件ionionenterprise带有来自ionionteam的完全支持和维护的插件。 了解更多 或者如果你对这个插件的企业版本感兴趣 联系我们
支持的平台上
- 安卓
- iOS
- 窗户
使用
反应
角
进口
{
LocalNotifications
}
从
“@betway东盟体育appionic-native /本地通知/ ngx”
;
构造函数
(
私人
localNotifications
:
LocalNotifications
)
{
}
…
//调度单个通知
这
.
localNotifications
.
时间表
(
{
id
:
1
,
文本
:
“单一ILocalNotification”
,
声音
:
isAndroid
?
“文件:/ / sound.mp3”
:
“文件:/ / beep.caf”
,
数据
:
{
秘密
:
关键
}
}
)
;
//安排多个通知
这
.
localNotifications
.
时间表
(
[
{
id
:
1
,
文本
:
“多ILocalNotification 1”
,
声音
:
isAndroid
?
“文件:/ / sound.mp3”
:
“文件:/ / beep.caf”
,
数据
:
{
秘密
:
关键
}
}
,
{
id
:
2
,
标题
:
“当地ILocalNotification例子”
,
文本
:
《多ILocalNotification 2》
,
图标
:
“http://example.com/icon.png”
}
]
)
;
//时间表延迟通知
这
.
localNotifications
.
时间表
(
{
文本
:
“延迟ILocalNotification”
,
触发
:
{
在
:
新
日期
(
新
日期
(
)
.
取得时间
(
)
+
3600
)
}
,
领导
:
“什么”
,
声音
:
零
}
)
;