Skip to content

StreamAudioRecorder.beginRecording() interfering with haptic feedback and system sounds #682

@steookk

Description

@steookk

What did you do?

I noticed the haptic feedback was most of the times not generated when long pressing the mic in the message composer to record an audio. It is however always generated when stopping the recording.
I added a simple system sound in this function and it plays something like 70% of the times.

What did you expect to happen?

Both the sound and the haptic feedback should work 100% of the times, and in fact they do if we comment audioRecorder.beginRecording out.

What happened instead?

They are generated sometimes.

GetStream Environment

GetStream Chat version:4.64.0
GetStream Chat frameworks: StreamChat, StreamChatSwiftUI
iOS version:17 and 18(simulator)
Swift version:6.0
Xcode version:16.0
Device:iPhone 13 Mini

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions