{"id":20732426,"url":"https://github.com/jpush/jverification-react-native","last_synced_at":"2025-04-07T07:05:07.984Z","repository":{"id":33445981,"uuid":"156173463","full_name":"jpush/jverification-react-native","owner":"jpush","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-20T04:24:01.000Z","size":280288,"stargazers_count":30,"open_issues_count":6,"forks_count":32,"subscribers_count":18,"default_branch":"master","last_synced_at":"2025-03-09T03:24:32.027Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jpush.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2018-11-05T06:54:15.000Z","updated_at":"2024-06-28T10:25:40.000Z","dependencies_parsed_at":"2025-03-24T05:11:19.605Z","dependency_job_id":null,"html_url":"https://github.com/jpush/jverification-react-native","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpush%2Fjverification-react-native","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpush%2Fjverification-react-native/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpush%2Fjverification-react-native/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpush%2Fjverification-react-native/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jpush","download_url":"https://codeload.github.com/jpush/jverification-react-native/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247608150,"owners_count":20965952,"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","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:22.308Z","updated_at":"2025-04-07T07:05:07.956Z","avatar_url":"https://github.com/jpush.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JVerification-React-Native\n\n## 1. 安装\n\n```\nnpm install jverification-react-native --save\n```\n\n* 注意：如果项目里没有jcore-react-native，需要安装\n\n  ```\n  npm install jcore-react-native --save\n  ```\n\n## 2. 配置\n\n### 2.1 Android\n\n* build.gradle\n\n  ```\n  android {\n        defaultConfig {\n            applicationId \"yourApplicationId\"           //在此替换你的应用包名\n            ...\n            manifestPlaceholders = [\n                    JPUSH_APPKEY: \"yourAppKey\",         //在此替换你的APPKey\n                    JPUSH_CHANNEL: \"yourChannel\"        //在此替换你的channel\n            ]\n        }\n    }\n  ```\n\n  ```\n  dependencies {\n        ...\n        implementation project(':jverification-react-native') // 添加 jverification 依赖\n        implementation project(':jcore-react-native')         // 添加 jcore 依赖\n    }\n  ```\n\n* setting.gradle\n\n  ```\n  include ':jverification-react-native'\n  project(':jverification-react-native').projectDir = new File(rootProject.projectDir, '../node_modules/jverification-react-native/android')\n  include ':jcore-react-native'\n  project(':jcore-react-native').projectDir = new File(rootProject.projectDir, '../node_modules/jcore-react-native/android')\n  ```\n\n### 2.2 iOS\n\n### 2.2.1 pod\n\n```\npod install\n```\n\n* 注意：如果项目里使用pod安装过，请先执行命令\n\n  ```\n  pod deintegrate\n  ```\n  \n### 2.2.2 配置AppKey\n\n* App.js\n```\nconst initParams = {\n    'time': 5000,\n    'appKey': 'yourAppKey',               //仅iOS\n    'channel': 'channel',                 //仅iOS\n    'advertisingId': 'advertisingId',     //仅iOS\n    'isProduction': false,                //仅iOS\n};\n```\n\n## 3. 引用\n\n参考：[App.js](https://github.com/jpush/jverification-react-native/tree/master/example/App.js)\n\n## 4. API\n+ API详细说明：[API详细说明.md](https://github.com/jpush/jverification-react-native/blob/master/API%E8%AF%A6%E7%BB%86%E8%AF%B4%E6%98%8E.md) \n\n+ 授权页面元素配置说明：[认证SDK授权页面元素配置API说明.md](https://github.com/jpush/jverification-react-native/blob/master/%E8%AE%A4%E8%AF%81SDK%E6%8E%88%E6%9D%83%E9%A1%B5%E9%9D%A2%E5%85%83%E7%B4%A0%E9%85%8D%E7%BD%AEAPI%E8%AF%B4%E6%98%8E.md)\n\n+ 示例详见：[index.js](https://github.com/jpush/jverification-react-native/tree/master/index.js)\n\n## 5.  其他\n\n* 集成前务必将example工程跑通\n* JVerification2.2.0属于重构版本，如有紧急需求请前往[极光社区](https://community.jiguang.cn/c/question)\n* 上报问题还麻烦先调用JVerification.setLoggerEnable( true)，拿到debug日志\n\n \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpush%2Fjverification-react-native","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjpush%2Fjverification-react-native","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpush%2Fjverification-react-native/lists"}