native audio plugin is used for playing audio in your ionic application.
To use this plugin you need to install it first in your application directory by following command:
cordova plugin add cordova-plugin-nativeaudio
you first need audio file which is saved inside your js folder or anywhere you want to place it.
Next you have to preload audio file in your project so that it can be used. For this two options available: preloadSimple and preloadComplex.
preloadSimple : It is used for sounds that are played once.
preloadComplex : It is used for sounds that are in looping or like background audio.