After successfully implementing a PWA in Angular with agora.io voice calling, I encountered an issue where the microphone would get muted on both iOS and Android devices when the phone was locked. Even after unlocking the phone, the microphone remained muted, requiring me to close and reopen the voice call to resume speaking. Interestingly, the audio functionality worked well even when the phone was locked.
I prefer not to rely on keeping the app in the foreground, but if that is the only solution available, I am willing to consider it. However, even manually locking the phone still results in the persisting microphone mute issue.