{"id":26188203,"url":"https://github.com/waitaction/cordova-plugin-oppo-push","last_synced_at":"2025-08-21T14:06:37.707Z","repository":{"id":57208751,"uuid":"293407279","full_name":"waitaction/cordova-plugin-oppo-push","owner":"waitaction","description":"oppo 推送","archived":false,"fork":false,"pushed_at":"2020-11-11T09:27:56.000Z","size":43,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-16T12:58:31.796Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/waitaction.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-09-07T02:55:27.000Z","updated_at":"2021-02-22T08:30:47.000Z","dependencies_parsed_at":"2022-09-04T05:41:59.344Z","dependency_job_id":null,"html_url":"https://github.com/waitaction/cordova-plugin-oppo-push","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waitaction%2Fcordova-plugin-oppo-push","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waitaction%2Fcordova-plugin-oppo-push/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waitaction%2Fcordova-plugin-oppo-push/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waitaction%2Fcordova-plugin-oppo-push/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/waitaction","download_url":"https://codeload.github.com/waitaction/cordova-plugin-oppo-push/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243130956,"owners_count":20241177,"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":"2025-03-11T23:57:32.404Z","updated_at":"2025-03-11T23:57:33.291Z","avatar_url":"https://github.com/waitaction.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":" # OPPO推送\n\nOPPO手机推送\n\n安装 `cordova-plugin-oppo-push`\n \n\n``` shell\n cordova plugin add cordova-plugin-oppo-push --variable  APP_KEY=YOUR_APP_KEY --variable APP_SECRET=YOUR_APP_SECRET\n```\n\n## 使用\n\n使用前需注册，以获取 `token` ，你可以将 `token` 与你的app用户信息关联后上传到服务器\n\n``` js\n// 注册推送\noppoPush.register(function(token) {\n    console.log(token);\n}, function(err) {\n    console.log(err);\n}, []);\n\n// 接收token\noppoPush.onNewToken(function(token) {\n    console.log(token); // 会多次接收到token\n});\n```\n\n注册完成后，需要监听 `messageReceived` 事件\n\n``` js\ndocument.addEventListener(\"messageReceived\", function(result) {\n    console.log(result);\n}, false);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwaitaction%2Fcordova-plugin-oppo-push","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwaitaction%2Fcordova-plugin-oppo-push","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwaitaction%2Fcordova-plugin-oppo-push/lists"}