{"id":13795467,"url":"https://github.com/Cap-go/capacitor-mute","last_synced_at":"2025-05-12T23:32:20.842Z","repository":{"id":57194018,"uuid":"426803627","full_name":"Cap-go/capacitor-mute","owner":"Cap-go","description":"Detect if the mute switch is enabled/disabled on a device","archived":false,"fork":false,"pushed_at":"2025-05-12T05:07:28.000Z","size":964,"stargazers_count":8,"open_issues_count":5,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-12T06:22:58.562Z","etag":null,"topics":["android","capacitor","capacitor-plugin","ionic","ios","typescript"],"latest_commit_sha":null,"homepage":"https://capgo.app","language":"Swift","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/Cap-go.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","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,"zenodo":null},"funding":{"github":"Cap-go","patreon":null,"open_collective":"capgo","ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2021-11-10T23:01:44.000Z","updated_at":"2025-05-12T05:06:11.000Z","dependencies_parsed_at":"2022-09-15T22:31:11.458Z","dependency_job_id":"6cabfe20-709b-4bc4-86af-93c03d98ea4d","html_url":"https://github.com/Cap-go/capacitor-mute","commit_stats":{"total_commits":156,"total_committers":4,"mean_commits":39.0,"dds":0.5384615384615384,"last_synced_commit":"cb4201a8f05a8b4b5f4ccb49617dee08c3ca5373"},"previous_names":["riderx/capacitor-mute"],"tags_count":104,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cap-go%2Fcapacitor-mute","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cap-go%2Fcapacitor-mute/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cap-go%2Fcapacitor-mute/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cap-go%2Fcapacitor-mute/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Cap-go","download_url":"https://codeload.github.com/Cap-go/capacitor-mute/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253840951,"owners_count":21972570,"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":["android","capacitor","capacitor-plugin","ionic","ios","typescript"],"created_at":"2024-08-03T23:00:57.556Z","updated_at":"2025-05-12T23:32:20.800Z","avatar_url":"https://github.com/Cap-go.png","language":"Swift","funding_links":["https://github.com/sponsors/Cap-go","https://opencollective.com/capgo"],"categories":["Plugins","Capgo Capacitor Plugins","[Capgo plugins](https://capgo.app/)"],"sub_categories":["Community Plugins","Device \u0026 Sensors"],"readme":"# capacitor-mute\n  \u003ca href=\"https://capgo.app/\"\u003e\u003cimg src='https://raw.githubusercontent.com/Cap-go/capgo/main/assets/capgo_banner.png' alt='Capgo - Instant updates for capacitor'/\u003e\u003c/a\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003ch2\u003e\u003ca href=\"https://capgo.app/?ref=plugin\"\u003e ➡️ Get Instant updates for your App with Capgo 🚀\u003c/a\u003e\u003c/h2\u003e\n  \u003ch2\u003e\u003ca href=\"https://capgo.app/consulting/?ref=plugin\"\u003e Fix your annoying bug now, Hire a Capacitor expert 💪\u003c/a\u003e\u003c/h2\u003e\n\u003c/div\u003e\n\n\nDetect if the mute switch is enabled/disabled on a device\n\n## Install\n\n```bash\nnpm install @capgo/capacitor-mute\nnpx cap sync\n```\n\n## Know issue\n\nOn IOS with Xcode 14 the lib use under the hood `Mute` is not configured as Apple expect anymore, it's not the only one having the issue as you can see here :\nhttps://github.com/CocoaPods/CocoaPods/issues/8891\n\nSolution:\nReplace this to your Podfile:\n```ruby\npost_install do |installer|\n  assertDeploymentTarget(installer)\nend\n```\nBy\n```ruby\npost_install do |installer|\n  assertDeploymentTarget(installer)\n  installer.pods_project.targets.each do |target|\n    if target.respond_to?(:product_type) and target.product_type == \"com.apple.product-type.bundle\"\n      target.build_configurations.each do |config|\n          config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'\n      end\n    end\n  end\nend\n```\nThat should solve your issue.\nI did open issue in the original repo to see if they can fix it:\nhttps://github.com/akramhussein/Mute/issues/16\nIf no answer I will add the code directly to capacitor-mute\n\n\n## API\n\n\u003cdocgen-index\u003e\n\n* [`isMuted()`](#ismuted)\n* [Interfaces](#interfaces)\n\n\u003c/docgen-index\u003e\n\n\u003cdocgen-api\u003e\n\u003c!--Update the source file JSDoc comments and rerun docgen to update the docs below--\u003e\n\n### isMuted()\n\n```typescript\nisMuted() =\u003e Promise\u003cMuteResponse\u003e\n```\n\ncheck if the device is muted\n\n**Returns:** \u003ccode\u003ePromise\u0026lt;\u003ca href=\"#muteresponse\"\u003eMuteResponse\u003c/a\u003e\u0026gt;\u003c/code\u003e\n\n--------------------\n\n\n### Interfaces\n\n\n#### MuteResponse\n\n| Prop        | Type                 |\n| ----------- | -------------------- |\n| **`value`** | \u003ccode\u003eboolean\u003c/code\u003e |\n\n\u003c/docgen-api\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCap-go%2Fcapacitor-mute","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FCap-go%2Fcapacitor-mute","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCap-go%2Fcapacitor-mute/lists"}