{"id":20732398,"url":"https://github.com/jpush/janalytics-unity3d-plugin","last_synced_at":"2026-06-01T10:31:27.204Z","repository":{"id":149541539,"uuid":"195155422","full_name":"jpush/janalytics-unity3d-plugin","owner":"jpush","description":"极光官方支持的 JAnalytics Unity 插件（Android \u0026 iOS）","archived":false,"fork":false,"pushed_at":"2019-08-01T03:30:00.000Z","size":59398,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":20,"default_branch":"master","last_synced_at":"2025-12-19T20:09:41.697Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C#","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":null,"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}},"created_at":"2019-07-04T02:27:19.000Z","updated_at":"2020-12-21T16:58:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"7f2877fe-59c7-45b0-a454-c6feb9e2d4b7","html_url":"https://github.com/jpush/janalytics-unity3d-plugin","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/jpush/janalytics-unity3d-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpush%2Fjanalytics-unity3d-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpush%2Fjanalytics-unity3d-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpush%2Fjanalytics-unity3d-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpush%2Fjanalytics-unity3d-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jpush","download_url":"https://codeload.github.com/jpush/janalytics-unity3d-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpush%2Fjanalytics-unity3d-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33771627,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-01T02:00:06.963Z","response_time":115,"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:13.568Z","updated_at":"2026-06-01T10:31:27.168Z","avatar_url":"https://github.com/jpush.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JAnalytics Unity Plugin\n\n[![release](https://img.shields.io/badge/release-1.0.0-blue.svg)](https://github.com/jpush/janalytics-unity3d-plugin/releases)\n[![platforms](https://img.shields.io/badge/platforms-iOS%7CAndroid-green.svg)](https://github.com/jpush/janalytics-unity3d-plugin)\n\n极光官方支持的 JAnalytics Unity 插件（Android \u0026amp; iOS）。\n\n## 集成\n\n把Plugins文件夹里的文件合并到您自己的项目Assets/Plugins文件夹下面\n\n### Android\n\n1. 替换 AndroidManifest.xml 里的包名。\n2. 将 AndroidManifest.xml 中的 JPUSH_APPKEY 值替换成极光控制台应用详情中的 AppKey 值。\n3. 配置项目里的包名：在 Unity 中选择 *File---Build Settings---Player Settings*，将 *Identification* 选项下的 *Bundle Identifier* 设置为应用的包名。\n\n### iOS\n\n1. 生成 iOS 工程，并打开该工程。\n2. 添加必要的框架：\n\n    - UIKit\n    - SystemConfiguration\n    - CoreTelephony\n    - CoreGraphics\n    - Security\n    - Foundation\n    - CoreLocation\n    - CoreFoundation\n    - CFNetwork\n    - libz.tbd\n    - libresolv.tbd\n    - libsqlite3.tbd（v2.0.0及以上版本需要）\n\n\n3. 在 UnityAppController.mm 中添加头文件 `JANALYTICSService.h`  。\n\n    ```Objective-C\n    #import \"JANALYTICSService.h\"\n\n    ```\n\n4. 在 UnityAppController.mm 的下列方法中添加以下代码：\n\n    ```Objective-C\n    - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {\n\n      \n\n      /*\n        参数说明：\n            appKey: 极光官网控制台应用标识。\n            channel: 频道，暂无可填任意。\n      */\n      JANALYTICSLaunchConfig * config = [[JANALYTICSLaunchConfig alloc] init];\n      config.appKey = @\"替换成你自己的 Appkey\";\n      config.channel = @\"\";\n      [JANALYTICSService setupWithConfig:config];\n\n\n      return YES;\n    }\n\n    ```\n\n## API 说明\n\nAndroid 与 iOS [通用 API](/Doc/CommonAPI.md)。\n\n### Android\n\n[Android API](/Doc/AndroidAPI.md)\n\n\u003e ./PluginsAndroidAARCode/janalytics-unity-plugin 为插件的 Android 项目，可以使用 Android Studio 打开并进行修改，再 build 为 .aar 替换已有的 janalytics-unity-plugin-release.aar。\n\n### iOS\n\n[iOS API](/Doc/iOSAPI.md)\n\n## 更多\n\n- [JAnalytics 官网文档](https://docs.jiguang.cn)\n- 有问题可访问[极光社区](http://community.jpush.cn/)搜索和提问。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpush%2Fjanalytics-unity3d-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjpush%2Fjanalytics-unity3d-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpush%2Fjanalytics-unity3d-plugin/lists"}