[closed] Native Audio will not install

I’m having an odd issue where native audio plugin will not install. I get this error in xcode:

WARN: Native: tried calling NativeAudio.stop, but the NativeAudio plugin is not installed.
WARN: Install the NativeAudio plugin: ‘ionic plugin add cordova-plugin-nativeaudio’

I have verified the plugin is installed and even ran:

cordova plugin remove cordova-plugin-nativeaudio
cordova plugin add cordova-plugin-nativeaudio  --save

The error is asking you to run

ionic plugin add cordova-plugin-nativeaudio”

But you’re still running "cordova plugin add…"
Perhaps that’s the issue right there?

I did that as well with no luck

You might need to update your version of ionic native then.

npm install ionic-native --save

I’m on the latest 1.3.16 already, but will run command again.

It even show up on the plugins list and I get a warning in xcode.

git:(master) ✗ cordova plugins
cordova-plugin-background-mode 0.6.5 "BackgroundMode"
cordova-plugin-ble-central 1.1.1 "BLE"
cordova-plugin-compat 1.0.0 "Compat"
cordova-plugin-console 1.0.3 "Console"
cordova-plugin-device 1.1.2 "Device"
cordova-plugin-device-orientation 1.0.3 "Device Orientation"
cordova-plugin-dialogs 1.2.1 "Notification"
cordova-plugin-insomnia 4.2.0 "Insomnia (prevent screen sleep)"
cordova-plugin-nativeaudio 3.0.7 "Cordova Native Audio"
cordova-plugin-nativestorage 2.0.2 "NativeStorage"
cordova-plugin-splashscreen 3.2.2 "Splashscreen"
cordova-plugin-statusbar 2.1.3 "StatusBar"
cordova-plugin-whitelist 1.2.2 "Whitelist"
cordova-plugin-wkwebview-engine 1.1.0-dev "Cordova WKWebView Engine"
ionic-plugin-keyboard 2.2.1 “Keyboard”

/Users/…/Plugins/cordova-plugin-nativeaudio/NativeAudio.m:32:5: ‘AudioSessionInitialize’ is deprecated: first deprecated in iOS 7.0

This has been resolved by the ionic native team.

Can you share more details about the fix? Did you updated ionic native? I am getting the same error on android device

Sorry, yes update ionic native to 1.3.17