Android Native App WebView - External Voice Form Page Fails to Load

0
Dear Community,I am facing an issue in a Mendix Native Android app where an external web application is opened inside a WebView.Azure SSO works successfully.External application's home page loads correctly after login.User session is maintained.When navigating to a specific Voice Form page from a button (speech-to-text/voice recording form), the page redirects to a generic error page saying "Something went wrong".The same page works in desktop browsers, Android Chrome/Edge, and iOS Native app.Android app already has microphone/audio permissions enabled.Since authentication, session, and general navigation are working, we're suspecting an Android WebView compatibility issue with the voice-related functionality.Has anyone faced similar issues with Android Native WebView and pages using speech/audio APIs (WebRTC, MediaRecorder, Speech SDK, etc.)? Any recommendations for capturing Android WebView console logs or troubleshooting further? Any guidance or similar experiences would be greatly appreciated.
asked
1 answers
0

Based on your description, I suspect this is an Android WebView limitation rather than a Mendix issue.


Most voice recording features rely on the standard Web API getUserMedia(). While this works in Chrome and other browsers, it may not behave the same way inside the Mendix Native WebView, even if microphone permissions are already granted.


Instead of relying on the WebView to access the microphone, I would recommend using the Native app itself to capture the audio:

  • Trigger a Nanoflow or use the Mendix Client API from the WebView.
  • Start the audio recording using the Native capabilities.
  • Once the recording is complete, pass the audio file back to the web application for further processing.


This approach avoids depending on WebView support for getUserMedia() and is generally more reliable for Native applications.


Before proceeding, I would also verify whether the external voice library officially supports running inside Android WebView. If it only supports Chrome/Edge browsers, that would explain why it works everywhere except inside the Mendix Native app.


Kindly mark this as the accepted answer if it helps.

answered