Vue problem with sound app on release build Cordova

Hi :slight_smile:

I have one problem with sound my app. Locale in html everything is good, but when I run app on android release build I don’t hear sound.

  computed: {
    soundWhistle() {
      return new Audio("/static/sounds/whistle.mp3")

I think it is a matter of config that the flag is missing.
Has anyone had a similar problem? I will be grateful for help, guiding what the problem may be.

    <content src="index.html" />
    <plugin name="cordova-plugin-whitelist" spec="1" />
    <plugin name="cordova-plugin-inappbrowser" spec="3.0.0" />
    <plugin name="cordova-plugin-media" spec="5.0.3" />
    <access origin="*" />
    <allow-intent href="http://*/*" />
    <allow-intent href="https://*/*" />
    <allow-intent href="tel:*" />
    <allow-intent href="sms:*" />
    <allow-intent href="mailto:*" />
    <allow-intent href="geo:*" />
    <platform name="android">
        <allow-intent href="market:*" />
    <platform name="ios">
        <allow-intent href="itms:*" />
        <allow-intent href="itms-apps:*" />

    <allow-navigation href="*" />

    <platform name="android">
      <preference name="StatusBarOverlaysWebView" value="false" />
      <preference name="android-minSdkVersion" value="22" />
      <preference name="SplashMaintainAspectRatio" value="true" />

    <platform name="ios">
      <config-file parent="CFBundleAllowMixedLocalizations" platform="ios" target="*-Info.plist">
        <true />
      <preference name="StatusBarOverlaysWebView" value="false" />
      <preference name="WKWebViewOnly" value="true" />

    <preference name="UIWebViewBounce" value="false" />
    <preference name="DisallowOverscroll" value="true" />
    <preference name="BackupWebStorage" value="local" />
    <preference name="AutoHideSplashScreen" value="true" />
    <preference name="ShowSplashScreenSpinner" value="true" />
    <preference name="SplashScreenDelay" value="0" />
    <preference name="Suppresses3DTouchGesture" value="true" />
    <preference name="Allow3DTouchLinkPreview" value="false" />
    <preference name="CordovaWebViewEngine" value="CDVWKWebViewEngine" />
    <preference name="AllowInlineMediaPlayback" value="true" />

Cordova plugin list

cordova-plugin-file 6.0.2 "File"
cordova-plugin-inappbrowser 3.0.0 "InAppBrowser"
cordova-plugin-keyboard 1.2.0 "Keyboard"
cordova-plugin-media 5.0.3 "Media"
cordova-plugin-splashscreen 6.0.0 "Splashscreen"
cordova-plugin-statusbar 2.4.3 "StatusBar"
cordova-plugin-whitelist 1.3.4 "Whitelist"
cordova-plugin-wkwebview-engine 1.2.1 "Cordova WKWebView Engine"
cordova-plugin-wkwebview-file-xhr 2.1.1 "Cordova WKWebView File XHR Plugin"

Check the console, there might be some helpful error messages. For me path doesn’t seem correct, for cordova app i guess it should be: new Audio("static/sounds/whistle.mp3") without leading slash

Probably this is problem I change mp3 on base64 and check build on app cordova

I will back to info about

soundWhistle() {
  return new Audio("data:audio/mpeg;base64,SUQzAwAAAAMd......")