OneSignal/OneSignal-Website-SDK
关于
OneSignal 让客户互动变得简单,是发送推送通知、应用内消息、短信和电子邮件速度最快、可靠性最高的服务。这个插件可让你轻松将 OneSignal 添加到网站。https://onesignal.com
效率与自动化实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文
Showing web push notifications from Chrome, Safari, and Firefox
OneSignal Web Push SDK
OneSignal is the market leader in customer engagement, powering mobile push, web push, email, and in-app messages.
This SDK allows your site's visitors to receive push notifications from you. Send visitors custom notification content, target specific users, and send automatically based on triggers.
Getting Started
View our documentation to get started.
Please reference the OneSignal SDK on your webpage via our CDN URL (listed in our setup documentation) instead of copying the source into another file. This is because our SDK updates frequently for new features and bug fixes.
Local Development
Install the dependencies vp install then you can vp run dev. This will start a dev server on port 4001.
The code will use navigator register on OneSignalSDKWorker.js to register the code as service worker.
Preview
To preview with the actual bundle, cd preview && vp run start — the script builds the SDK at the repo root and then starts the Vite-based sandbox server on https://localhost:4001. The default (start:dev) targets the production OneSignal API; start:dev-stag is also available for staging. See preview/README.md for the full setup.
探索相关项目
加载中…