npm i --save nativescript-in-app-notifications
- 版本:2.0.0
- GitHub: https://github.com/Essent/nativescript-in-app-notifications
- NPM: https://npmjs.net.cn/package/nativescript-in-app-notifications
- 下载量
- 昨日:0
- 上周:10
- 上个月:30
NativeScript In App Notifications 插件
这是一个在 iOS 上显示应用内通知的插件,使用 BSForegroundNotification v3.1)。
演示
查看 演示 文件夹以获取示例用法。
Angular 2
使用方法
- 将插件添加到项目中
npm install nativescript-in-app-notifications
- 要显示通知,请调用
showNotification
InAppNotifications.getInstance().showNotification('This is a notification', 'This is the title', () => {
console.log('tap');
});
尝试演示
要尝试演示,请运行以下命令
npm run setup
npm run build.demo
npm run dev.ios
如果您更改了演示项目的文件并想要再次运行应用程序
npm run build.demo
npm run dev.ios