{"id":19210018,"url":"https://github.com/zencodex/codova-plugin-umeng","last_synced_at":"2026-06-16T03:32:20.736Z","repository":{"id":76097103,"uuid":"82021505","full_name":"zencodex/codova-plugin-umeng","owner":"zencodex","description":"umeng cordova/phonegap plugin，友盟统计的插件，android，ios 2合1","archived":false,"fork":false,"pushed_at":"2017-02-15T05:21:04.000Z","size":3645,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-14T03:02:42.153Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zencodex.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":"2017-02-15T04:51:07.000Z","updated_at":"2017-12-13T07:59:30.000Z","dependencies_parsed_at":"2023-03-03T02:46:01.145Z","dependency_job_id":null,"html_url":"https://github.com/zencodex/codova-plugin-umeng","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zencodex/codova-plugin-umeng","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zencodex%2Fcodova-plugin-umeng","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zencodex%2Fcodova-plugin-umeng/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zencodex%2Fcodova-plugin-umeng/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zencodex%2Fcodova-plugin-umeng/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zencodex","download_url":"https://codeload.github.com/zencodex/codova-plugin-umeng/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zencodex%2Fcodova-plugin-umeng/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34390052,"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-16T02:00:06.860Z","response_time":126,"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-09T13:34:03.978Z","updated_at":"2026-06-16T03:32:20.711Z","avatar_url":"https://github.com/zencodex.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"## 友盟统计 cordova/phonegap插件\n\n官方集成文档：  \n\u003chttp://dev.umeng.com/analytics/h5/phonegap-doc\u003e\n\n整合了官方android, ios两个平台，合2为1。**iOS使用的是无IDFA版本**，如果需要IDFA版本，请自行替换src/ios目录。\n\n如何防止应用因获取IDFA被AppStore拒绝:  \n\u003chttp://bbs.umeng.com/thread-5420-1-1.html\u003e\n\n## 添加插件：\n\n    cordova plugin add https://github.com/zencodex/codova-plugin-umeng.git\n\n## 配置APPKEY和CHANNEL：\n\n#### 1. Android\n\n    # 修改plugin.xml\n    26             \u003cmeta-data android:name=\"UMENG_APPKEY\" android:value=\"替换成YOUR APPKEY\" /\u003e\n    27             \u003cmeta-data android:name=\"UMENG_CHANNEL\" android:value=\"替换成YOUR CHANNEL\"/\u003e\n\n#### 2. iOS\n\n工程Classes/AppDelegate.m 文件中，添加头文件和初始化代码：\n\n~~~\n#import \u003cUMMobClick/MobClick.h\u003e\n\n@implementation AppDelegate\n\n- (BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions\n{\n    UMConfigInstance.appKey = @\"替换成YOUR APPKEY\";\n    UMConfigInstance.channelId = @\"替换成YOUR CHANNEL\";\n    UMConfigInstance.eSType=E_UM_GAME;//友盟游戏统计，如不设置默认为应用统计\n    [MobClick startWithConfigure:UMConfigInstance];\n~~~\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzencodex%2Fcodova-plugin-umeng","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzencodex%2Fcodova-plugin-umeng","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzencodex%2Fcodova-plugin-umeng/lists"}