# Ionic NATIVE AUDIO not works on ANDROID

**URL:** <https://forum.ionicframework.com/t/ionic-native-audio-not-works-on-android/149105>\
**Category:** Ionic Native\
**Created:** [November 30, 2018, 12:02pm UTC](https://forum.ionicframework.com/t/ionic-native-audio-not-works-on-android/149105 "2018-11-30T12:02:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![acqua000](https://avatars.discourse-cdn.com/v4/letter/a/9dc877/32.png) [@acqua000](https://forum.ionicframework.com/u/acqua000)\
**Post date:** [November 30, 2018, 12:02pm UTC](https://forum.ionicframework.com/t/ionic-native-audio-not-works-on-android/149105/1 "2018-11-30T12:02:09Z")

</div>

hi audio native not work on android but work in ios please help me

---

<div class="post-metadata">

**Author:** ![PavelPaulus](https://avatars.discourse-cdn.com/v4/letter/p/e36b37/32.png) [@PavelPaulus](https://forum.ionicframework.com/u/PavelPaulus)\
**Post date:** [August 28, 2019, 12:04pm UTC](https://forum.ionicframework.com/t/ionic-native-audio-not-works-on-android/149105/2 "2019-08-28T12:04:30Z")

</div>

the same for me.  
my code is

```auto
if (this.platformService.isAndroid()) {
      let id = new Date().toISOString() + `${sound}`;
      this.platform.ready().then(() => {
        this.nativeAudio.preloadComplex(id, `assets/audio/phonemes/${sound}.mp3`, 1, 1, 0).then(
          () => {
            console.log(`phoneme sound ${sound} _PRELOAD_`);
            this.nativeAudio.play(id).then(
              () => {
                console.log(`phoneme sound ${sound} _PLAY_`);
                $Amw(`.speaker-item-fr`).unbind().on({
                  'click': () => {
                    var src = ($(this).attr('src') === 'assets/icon/i-speaker-fill.svg')
                      ? 'assets/icon/i-speaker.svg'
                      : 'assets/icon/i-speaker-fill.svg';
                    $(this).attr('src', src);
                  }
                });
              },
              (err) => { console.log('play error', err); }
            );
            this.nativeAudio.stop(id).then(
              () => {
                console.log(`phoneme sound ${sound} _STOP_`);
                $Amw(`.speaker-item-fr`).unbind().on({
                  'click': () => {
                    var src = ($(this).attr('src') === 'assets/icon/i-speaker.svg')
                      ? 'assets/icon/i-speaker-fill.svg'
                      : 'assets/icon/i-speaker-fill.svg';
                    $(this).attr('src', src);
                  }
                });
              },
              (err) => { console.log('stop error', err); });
            this.nativeAudio.unload(id).then(
              () => { console.log(`phoneme sound ${sound} _UNLOAD_`); },
              (err) => { console.log('unload error', err); });
          },
          (err) => { console.log('preload error', err); }
        );
      }).catch(error => { console.log("platform ready", error) });
    }

```

the console.log display this message in the console :  
_PRELOAD_, _PLAY_, _STOP_, _UNLOAD_  
but there is no sound in the speakers.

great thank for eny help

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 9:08pm UTC](https://forum.ionicframework.com/t/ionic-native-audio-not-works-on-android/149105/3 "2021-07-19T21:08:09Z")

</div>

Closed on July 19, 2021, 9:08pm UTC


