6.0.0 • Published 10 days ago

@capgo/capacitor-mute v6.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 days ago

capacitor-mute

Detect if the mute switch is enabled/disabled on a device

Install

npm install @capgo/capacitor-mute
npx cap sync

Know issue

On 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 : https://github.com/CocoaPods/CocoaPods/issues/8891

Solution: Replace this to your Podfile:

post_install do |installer|
  assertDeploymentTarget(installer)
end

By

post_install do |installer|
  assertDeploymentTarget(installer)
  installer.pods_project.targets.each do |target|
    if target.respond_to?(:product_type) and target.product_type == "com.apple.product-type.bundle"
      target.build_configurations.each do |config|
          config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
      end
    end
  end
end

That should solve your issue. I did open issue in the original repo to see if they can fix it: https://github.com/akramhussein/Mute/issues/16 If no answer I will add the code directly to capacitor-mute

API

isMuted()

isMuted() => any

check if the device is muted

Returns: any


Interfaces

MuteResponse

PropType
valueboolean
6.0.0

10 days ago

2.0.3

12 months ago

2.0.2

12 months ago

2.0.5

12 months ago

2.0.4

12 months ago

2.0.7

12 months ago

2.0.6

12 months ago

2.0.8

12 months ago

2.0.13

11 months ago

1.1.52

12 months ago

1.1.51

1 year ago

1.1.50

1 year ago

1.1.53

12 months ago

1.1.49

1 year ago

1.1.48

1 year ago

1.1.47

1 year ago

1.1.41

1 year ago

1.1.45

1 year ago

1.1.44

1 year ago

1.1.43

1 year ago

1.1.42

1 year ago

1.1.46

1 year ago

1.1.40

1 year ago

1.1.38

1 year ago

1.1.39

1 year ago

1.1.34

1 year ago

1.1.33

1 year ago

1.1.32

1 year ago

1.1.37

1 year ago

1.1.36

1 year ago

1.1.35

1 year ago

1.1.29

1 year ago

1.1.28

1 year ago

1.1.9

2 years ago

1.1.8

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.30

1 year ago

1.1.31

1 year ago

1.1.16

1 year ago

1.1.15

1 year ago

1.1.14

1 year ago

1.1.19

1 year ago

1.1.18

1 year ago

1.1.17

1 year ago

1.1.21

1 year ago

1.1.20

1 year ago

1.1.27

1 year ago

1.1.26

1 year ago

1.1.25

1 year ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago