{"id":20732419,"url":"https://github.com/jpush/jpush-hbuilder-plugin","last_synced_at":"2025-10-24T08:06:01.049Z","repository":{"id":42177444,"uuid":"333387529","full_name":"jpush/jpush-hbuilder-plugin","owner":"jpush","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-25T09:47:10.000Z","size":149518,"stargazers_count":73,"open_issues_count":14,"forks_count":42,"subscribers_count":18,"default_branch":"master","last_synced_at":"2025-07-25T15:47:12.990Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jpush.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-01-27T10:44:36.000Z","updated_at":"2025-07-25T09:47:15.000Z","dependencies_parsed_at":"2025-07-25T11:34:06.087Z","dependency_job_id":null,"html_url":"https://github.com/jpush/jpush-hbuilder-plugin","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/jpush/jpush-hbuilder-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpush%2Fjpush-hbuilder-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpush%2Fjpush-hbuilder-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpush%2Fjpush-hbuilder-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpush%2Fjpush-hbuilder-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jpush","download_url":"https://codeload.github.com/jpush/jpush-hbuilder-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpush%2Fjpush-hbuilder-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280761808,"owners_count":26386245,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-24T02:00:06.418Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-17T05:19:21.963Z","updated_at":"2025-10-24T08:06:01.032Z","avatar_url":"https://github.com/jpush.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jpush-hbuilder-plugin\n\n[极光推送](https://www.jiguang.cn/) 官方支持的 Hbuilder 插件（Android \u0026 iOS）。是基于 HBuilder 提供的 [uni-app 原生插件扩展](https://nativesupport.dcloud.net.cn/NativePlugin/README) 进而开发出的推送插件。\n\n支持 iOS 和 Android 推送，同时适配各大厂商推送。\n\n## uniapp插件市场地址\n[极光推送官方SDK](https://ext.dcloud.net.cn/plugin?id=4035)\n\n## 接入\n- 1.将 nativeplugins/JG-JPush 导入项目对应位置。\n- 2.项目 manifest.json 中接入 JG-JPush 插件，并配置插件配置。\n- 3.在项目中引用插件\n```\nconst jv = uni.requireNativePlugin('JG-JPush');\n```\n- 4.引入[JG-JCore 插件](https://github.com/jpush/jcore-hbuilder-plugin)，用于适配更多的极光 Uniapp 插件，必须引入。\n\n\n## DEMO 体验\n按照以下步骤快速体验 JPush_Hbuilder_demo：\n- 1.在[极光 portal](https://www.jiguang.cn/accounts/platform)注册应用并开通推送功能。\n- 2.在项目 manifest.json 中配置您的推送信息\n- 3.HbuilderX 中制作打包自定义基座，包名，签名，bundleID 需要与对应 appkey 配置的应用信息保持一致\n- 4.HbuilderX 使用自定义基座运行即可\n\n### 1.2 配置插件\n\n**HBuilderX 3.6.2 及之后版本，请打开mainfest配置文件，选择 App模块配置，勾选 Push 模块。**\n\n**注意：不要勾选uniPush！**\n\n打开 manifest.xml，选中App原生插件配置，选择本地插件，导入 JG-JPush\n\n然后配置各个属性，注意在HBuilderX中可能会出现乱序现象，请仔细认真填写\n\n| 属性               | 描述                                            | 示例                               |\n| :----------------- | ----------------------------------------------- | ---------------------------------- |\n| JPUSH_OPPO_APPKEY   | android oppo appkey（选填）                                | OP-12345678 |\n| JPUSH_OPPO_APPID   | android oppo appid（选填）                                | OP-12345678 |\n| JPUSH_OPPO_APPSECRET   | android oppo appSecret（选填）                                | OP-12345678 |\n| JPUSH_VIVO_APPKEY   | android vivo appkey（选填）                                | 12345678 |\n| JPUSH_VIVO_APPID   | android vivo appId（选填）                                | 12345678 |\n| JPUSH_MEIZU_APPKEY   | android meizu appkey（选填）                                | MZ-12345678 |\n| JPUSH_MEIZU_APPID   | android meizu appId（选填）                                | MZ-12345678 |\n| JPUSH_XIAOMI_APPKEY   | android xiaomi appKey（选填）                                | MI-12345678 |\n| JPUSH_XIAOMI_APPID   | android xiaomi appId（选填）                                | MI-12345678 |\n| JPUSH_HUAWEI_APPID   | android huawei appId（选填）                                | appid=12345678 |\n| JPUSH_HONOR_APPID   | android honor appId（选填）                                | 12345678 |\n| JPUSH_GOOGLE_API_KEY   | android google api_key（选填）                                | g-12345678 |\n| JPUSH_GOOGLE_APP_ID   | android google mobilesdk_app_id（选填）                                | g-12345678 |\n| JPUSH_GOOGLE_PROJECT_NUMBER   | android google project_number（选填）                                | g-12345678 |\n| JPUSH_GOOGLE_PROJECT_ID   | android google project_id（选填）                                | g-12345678 |\n| JPUSH_GOOGLE_STORAGE_BUCKET   | android google storage_bucket（选填）                                | g-12345678 |\n|JPUSH_ISPRODUCTION_IOS|iOS 是否是生产环境（选填）|是填true,不是填false或者不填|\n|JPUSH_ADVERTISINGID_IOS|iOS 广告标识符（IDFA）（选填）| 如果不需要使用IDFA，可不填|\n|JPUSH_DEFAULTINITJPUSH_IOS| iOS 是否默认初始化（选填）|是填true，不是填false或者不填|\n\n#### Android 厂商配置说明\n插件支持 OPPO VIVO 魅族 小米 华为 荣耀 FCM 七大厂商推送接入，如需接入请对应配置上述厂商信息。\n\n\n## API\n- [公用 API](https://github.com/jpush/jpush-hbuilder-plugin/blob/master/doc/API.md)\n- [Android 独有API](https://github.com/jpush/jpush-hbuilder-plugin/blob/master/doc/ANDROID.md)\n- [iOS 独有API](https://github.com/jpush/jpush-hbuilder-plugin/blob/master/doc/IOS.md)\n\n## 参考资料\n\n[官方文档](https://docs.jiguang.cn/jpush/intro/product_guide)\n\n## Support\n- 集成前请先尝试 [demo 工程](https://github.com/jpush/jpush-hbuilder-plugin/tree/master/JPush_Hbuilder_Demo)跑通\n- 出现问题请先打开 debug 模式，拿到前端和原生日志\n- 更多问题请前往[极光社区](http://community.jiguang.cn/)\n\n## License\n\nMIT © [JiGuang](/license)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpush%2Fjpush-hbuilder-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjpush%2Fjpush-hbuilder-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpush%2Fjpush-hbuilder-plugin/lists"}