@havesource/cordova-plugin-push

中文文档
7.0.0发布于 2025/09/09MITTypeScript零依赖近 30 天下载 1.5万

Register and receive push notifications.

原始使用文档

Cordova Plugin Push

Node CI Codacy Badge

Register and receive push notifications

What is this?

This plugin offers support to receive and handle native push notifications with a single unified API.

This does not mean you will be able to send a single push message and have it arrive on devices running different operating systems. By default Android uses FCM and iOS uses APNS and their payloads are significantly different. Even if you are using FCM for both Android and iOS there are differences in the payload required for the plugin to work correctly. For Android always put your push payload in the data section of the push notification. For more information on why that is the case read Notification vs Data Payload. For iOS follow the regular FCM documentation.

This plugin does not provide a way to determine which platform you are running on. The best way to do that is use the device.platform property provided by cordova-plugin-device.

Do you like tutorial? You get tutorial!

Thanks to all our contributors

10koTVollywaptaxiviktormullerdevgeeksrastafan

mdoelkermarkeeftbmalwattemadebycmkelvinhokkkeab42

jomarocasgiuseppeltericbeKazimclementcontetyaswanthsvist

Vabs28TillaTheHun0tomasvargtobmasterThiagoBuenoszh

SharUpOffsmorstabilinifesorGreyDekartsebastiansierolastor

tanansatpalSandroGrzicicxorxorrubenstolkroel-sluperpataar

peteonrailspjalbuquerqueNitroGhostmatrosov-nikitaMikejo5000michellarcari

adamschachnealhardingalbertleaogotevAlex-Sesslerben-8409

bmwertmanbmattocountcainCookieCooksoncdornercolene

cfsnydercmalarddansumptiondannywillemsDrMoriartyeladmoshe

mlabarcabromeostasisfilmajgeo242gbenvenutipolyn0m

jacquesdevjanpiojakaripurplecabbagetheaccordancejonas-m-

Chuckytuhleonardobazicoloslislo-lshiftluka5mac89markokeeffe

mbektchievgoyaslorberdasergesmdvdsnryanluker

russellbeattierjmunrohanickermwbrooksLightZamlaagland

cuatlgianpajEdMcBanechriswigginsbarryvdharmno

archananaikjakub-gshazronsclement41hung-doanBBosman

giordanocardillomikepsinnAdriVanHoudtalexislg2jcesarmobilenadyaA

jdhiroedewitwildabeastmkuklisashconnellzwacky

rakatyaljtbdevelopmentEddyVerbruggenfredgalvaobobeastmacdonst

larrybahr

版本与发布记录

@havesource/cordova-plugin-push 共发布 22 个版本,首次发布于 2020/11/08;过去 12 个月发布了 0 个版本。

版本发布日期距今
7.0.0latest2025/09/091.2 年前
5.0.62025/07/011.4 年前
4.0.12025/07/011.4 年前
3.0.22025/07/011.4 年前
2.0.12025/07/011.4 年前
1.0.12025/07/011.4 年前

其他发布通道:dev → 4.0.0-dev.0。

关于 @havesource/cordova-plugin-push 的常见问题

@havesource/cordova-plugin-push 是什么?

Register and receive push notifications.

如何安装 @havesource/cordova-plugin-push?

在项目目录运行 npm install @havesource/cordova-plugin-push,或使用 pnpm add / yarn add / bun add。

@havesource/cordova-plugin-push 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@havesource/cordova-plugin-push 可以商用吗?

@havesource/cordova-plugin-push 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@havesource/cordova-plugin-push 的下载量有多少?

根据 npm 官方下载统计,@havesource/cordova-plugin-push 在 2026/10/18 – 2026/11/16 这 30 天内被下载 15,316 次,日均约 511 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@havesource/cordova-plugin-push 还在维护吗?

最新版本 7.0.0 发布于 2025/09/09(1.2 年前);至今共发布 22 个版本,其中过去 12 个月发布了 0 个;首次发布于 2020/11/08。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。