{"id":17187571,"url":"https://github.com/youmesdk/youme-ionic","last_synced_at":"2026-04-12T02:34:23.527Z","repository":{"id":57169859,"uuid":"201084343","full_name":"youmesdk/youme-ionic","owner":"youmesdk","description":"youme sdk for ionic","archived":false,"fork":false,"pushed_at":"2020-03-17T00:45:42.000Z","size":352,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-09T00:41:27.732Z","etag":null,"topics":["android","angular","angularjs","cordova-android-plugin","cordova-ios-plugin","cordova-plugin","im","ionic","ionic-framework","ionic4","ios","sdk","typescript","wrapper"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/youmesdk.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}},"created_at":"2019-08-07T16:08:40.000Z","updated_at":"2019-09-05T01:24:31.000Z","dependencies_parsed_at":"2022-08-27T13:11:34.546Z","dependency_job_id":null,"html_url":"https://github.com/youmesdk/youme-ionic","commit_stats":null,"previous_names":["fanlion/youme-ionic"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/youmesdk/youme-ionic","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youmesdk%2Fyoume-ionic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youmesdk%2Fyoume-ionic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youmesdk%2Fyoume-ionic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youmesdk%2Fyoume-ionic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/youmesdk","download_url":"https://codeload.github.com/youmesdk/youme-ionic/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youmesdk%2Fyoume-ionic/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31702580,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T21:17:31.016Z","status":"online","status_checked_at":"2026-04-12T02:00:06.763Z","response_time":58,"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":["android","angular","angularjs","cordova-android-plugin","cordova-ios-plugin","cordova-plugin","im","ionic","ionic-framework","ionic4","ios","sdk","typescript","wrapper"],"created_at":"2024-10-15T01:06:43.081Z","updated_at":"2026-04-12T02:34:23.481Z","avatar_url":"https://github.com/youmesdk.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Youme Ionic Native\n\nYoume Ionic Native is a curated set of wrappers for Cordova plugins that make adding any native functionality you need to your [Ionic](https://ionicframework.com/) mobile app easy.\n\nIonic Native wraps plugin callbacks in a Promise or Observable, providing a common interface for all plugins and making it easy to use plugins with Angular change detection.\n\n## Installation\n\nRun following command to install Ionic Native in your project.\n\n```bash\ncordova plugin add cordova-plugin-youme-im\nnpm install @youme-ionic/core --save\nnpm install @youme-ionic/youme-im --save\n```\n\nYou also need to install the Ionic Native package for each plugin you want to add. Please see the [Ionic Native documentation](https://ionicframework.com/docs/native/) for complete instructions on how to add and use the plugins.\n\n## Documentation\n\nFor the full Ionic Native documentation, please visit [https://ionicframework.com/docs/native/](https://ionicframework.com/docs/native/).\n\n### Basic Usage\n\n#### Ionic/Angular apps\n\nTo use a plugin, import and add the plugin provider to your `@NgModule`, and then inject it where you wish to use it.\nMake sure to import the injectable class from the `/ngx` directory as shown in the following examples:\n\n```typescript\n// app.module.ts\nimport { YoumeIM } from '@youme-ionic/youme-im/ngx';\n\n...\n\n@NgModule({\n  ...\n\n  providers: [\n    ...\n    YoumeIM\n    ...\n  ]\n  ...\n})\nexport class AppModule { }\n```\n\n```typescript\nimport { YoumeIM } from '@youme-ionic/youme-im/ngx';\nimport { Platform } from 'ionic-angular';\n\n@Component({ ... })\nexport class MyComponent {\n\n  constructor(private yim: YoumeIM, private platform: Platform) {\n\n    this.platform.ready().then(() =\u003e {\n      // init sdk\n      this.yim.init('appkey', 'appsecret', 'serverZone').then((code) =\u003e {\n        console.log('init sdk success', code);\n      }).catch((code) =\u003e {\n        console.log('init sdk fail', code);\n      });\n    });\n\n  }\n\n}\n```\n\n#### ES2015+/TypeScript\n\nThese modules can work in any ES2015+/TypeScript app (including Angular/Ionic apps). To use any plugin, import the class from the appropriate package, and use it's static methods.\n\n```js\nimport { YoumeIM } from '@youme-ionic/youme-im';\n\ndocument.addEventListener('deviceready', () =\u003e {\n  YoumeIM.init('appke', 'appsecret', 'serverZone').then((code) =\u003e {\n    console.log('init sdk success', code);\n  }.catch((code) =\u003e {\n    console.log('init sdk fail', code));\n  }\n});\n```\n\n#### AngularJS\n\nYoume Ionic Native generates an AngularJS module in runtime and prepares a service for each plugin. To use the plugins in your AngularJS app:\n\n1. Download the latest bundle.\n2. Include it in `index.html` before your app's code.\n3. Inject `youme.native` module in your app.\n4. Inject any plugin you would like to use with a `$cordova` prefix.\n\n```js\nangular.module('myApp', ['youme.native'])\n  .controller('MyPageController', function($cordovaYoumeIM) {\n    $cordovaYoumeIM.init('appke', 'appsecret' , 'serverZone').then(\n      function(code) {\n        console.log('init sdk success', code);\n      },\n      function(err) {\n        console.log('init sdk fail', code);\n      });\n  });\n```\n\n#### Vanilla JS\n\nTo use Ionic Native in any other setup:\n\n1. Download the latest bundle.\n2. Include it in `index.html` before your app's code.\n3. Access any plugin using the global `YoumeNative` variable.\n\n```js\ndocument.addEventListener('deviceready', function() {\n  YoumeNative.YoumeIM.init('appkey', 'appsecret', 'serverZone').then(\n      function (code) {\n        console.log('init sdk success', code);\n      },\n      function(code) {\n        console.log('init sdk fail', code);\n      }\n    );\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoumesdk%2Fyoume-ionic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyoumesdk%2Fyoume-ionic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoumesdk%2Fyoume-ionic/lists"}