Ios - Cordova Plugin Media - getCurrentPosition - NSInvalidArgumentException

I’m trying to get getCurrentPosition()
i only get an error from Xcode

Initially, I just tried to use html5 audio
but it does not work very well on IOS with all that user input. It works very well with android.

 this.iosAudio_file.getCurrentPosition().then((position) => {
    console.log("audio position: " + position);
 }).catch(_=>{
      console.log("audio position error: ");
 });

Error from Xcode:

2018-02-06 03:58:46.786217-0800 [2342:1572180] *** WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: <NSInvalidArgumentException> Invalid number value (NaN) in JSON write
2018-02-06 03:58:46.789125-0800 [2342:1572180] exception nativeEvalAndFetch : ReferenceError: Can't find variable: nan

package.json
"cordova-plugin-media": "^5.0.2",
config.xml

<plugin name="cordova-plugin-media" spec="^5.0.2">
     <variable name="KEEP_AVAUDIOSESSION_ALWAYS_ACTIVE" value="NO" />
</plugin>

ionic info:

cli packages: (/usr/local/lib/node_modules)

    @ionic/cli-utils  : 1.19.0
    ionic (Ionic CLI) : 3.19.0

global packages:

    cordova (Cordova CLI) : 8.0.0 

local packages:

    @ionic/app-scripts : 3.1.6
    Cordova Platforms  : android 7.0.0 ios 4.5.4
    Ionic Framework    : ionic-angular 3.9.2

System:

    Android SDK Tools : 26.1.1
    ios-deploy        : 1.9.2 
    Node              : v8.9.4
    npm               : 5.6.0 
    OS                : macOS High Sierra
    Xcode             : Xcode 9.2 Build version 9C40b 

Environment Variables:

    ANDROID_HOME : /Users/Revolvo/Library/Android/sdk/

Misc:

    backend : pro

I am getting same error when I call to getCurrentPosition, but only fail sometimes.

Is there any way to catch this NSInvalidArgumentException? I have tried catch it like Johanrevolvo did, but it doesnt work.

It only fails when I use the Xcode Emulator… Anybody could help with it? plz