Ionic native-audio doesn't work on android Ionic native-audio doesn't work on android angular angular

Ionic native-audio doesn't work on android


i found an issue in your smartAudio provider.Please change "asset: key" to "asset: asset" and try again.

enter image description here


I had the same problem. But I found this article:Sound Effects using HTML5 and Native Audio in Ionic

I did everything as in this article - and I got a sound in my Android phone. Try it - it should work. Just in case, I will show the file package.json:

  "dependencies": {    "@angular/common": "4.4.3",    "@angular/compiler": "4.4.3",    "@angular/compiler-cli": "4.4.3",    "@angular/core": "4.4.3",    "@angular/forms": "4.4.3",    "@angular/http": "4.4.3",    "@angular/platform-browser": "4.4.3",    "@angular/platform-browser-dynamic": "4.4.3",    "@ionic-native/core": "4.3.0",    "@ionic-native/native-audio": "^4.3.0",    "@ionic-native/social-sharing": "^4.3.0",    "@ionic-native/splash-screen": "4.3.0",    "@ionic-native/status-bar": "4.3.0",    "@ionic/storage": "2.0.1",    "ionic-angular": "3.7.1",    "ionicons": "3.0.0",    "rxjs": "5.4.3",    "sw-toolbox": "3.6.0",    "zone.js": "0.8.18"  },  "devDependencies": {    "@ionic/app-scripts": "3.0.0",    "typescript": "2.3.4"  },

The latest version of Ionic is used. This example works in the article. Try it.


Make sure your Android API levels are 14 - 21.

In older versions might not work.