背景
AudioServicesPlaySystemSound(kSystemSoundID_Vibrate); 目前只在iPhone上支持。但,在某些情况下无效果。
效果状态
| Category | Mode | Result |
|---|---|---|
| AVAudioSessionCategorySoloAmbient | AVAudioSessionCategorySoloAmbient | Work |
| AVAudioSessionCategoryPlayAndRecord | AVAudioSessionModeDefault | Not work |
| AVAudioSessionCategoryPlayAndRecord | AVAudioSessionModeVoiceChat | Work |