# Ionic, NativeAudio just play once

**URL:** <https://forum.ionicframework.com/t/ionic-nativeaudio-just-play-once/100051>\
**Category:** Ionic Native\
**Created:** [July 29, 2017, 8:54am UTC](https://forum.ionicframework.com/t/ionic-nativeaudio-just-play-once/100051 "2017-07-29T08:54:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mshams](https://avatars.discourse-cdn.com/v4/letter/m/d07c76/32.png) [@mshams](https://forum.ionicframework.com/u/mshams)\
**Post date:** [July 29, 2017, 8:54am UTC](https://forum.ionicframework.com/t/ionic-nativeaudio-just-play-once/100051/1 "2017-07-29T08:54:28Z")

</div>

Hi,  
I’ve problem with NativeAudio and preloadSimple on Android platform.  
After successful preloadSimple, i’ll play my sound and all the things works, but after that the play() method just executes and no sound produced on Android device. I’ve used to catch errors on play method but it seems that it has called correctly with no error.

The code is as below:

```auto
public static playSound(nv: NativeAudio) {
        //if loaded before
        if (Sets.audio) {
            this.nv.play(this.SND_TIK);
            .then(err => { console.log("succ:" + err) }, err => { console.log("fail:" + err) });
        } else {
            this.nv.preloadSimple(this.SND_TIK, 'assets/sounds/tik.mp3').then(() => {
                Sets.audio = true;
                this.nv.play(this.SND_TIK)
                .then(err => { console.log("succ:" + err) }, err => { console.log("fail:" + err) });
            }).catch(err => {
                console.log(err);
            });
        }
    }

```
