Turning off system settings will cause the vibration rules set by the vibrator module to become ineffective.
Read the original article:Turning off system settings will cause the vibration rules set by the vibrator module to become ineffective Context When the vibration setting is disabled in HarmonyOS sys...

Source: DEV Community
Read the original article:Turning off system settings will cause the vibration rules set by the vibrator module to become ineffective Context When the vibration setting is disabled in HarmonyOS system settings, the vibration rules set via the @ohos.vibrator library become invalid. This behavior is inconsistent with Android systems, where vibration still responds even if the system vibration setting is disabled. Description In HarmonyOS, vibration functionality can be controlled through the @ohos.vibrator module. The startVibration() API is used to trigger motor vibration based on specified vibration effects and attributes. usage: Represents the vibration usage scenario. Control switches for vibration functionality: Tri-state switch Location: Settings → Sound & Vibration → Ring/Vibrate/Silent (or via the control panel Ring/Vibrate/Silent). Function: A multi-state switch that allows the user to select sound and vibration modes. Specifically: Ring mode (device emits sound) Vibration m