MediaPlayer.create() callbacks not fired


MediaPlayer.create method does not execute any callback function.

I’m using ionic-native 3.1.1.

This is my code (simplified):

import {MediaPlugin, MediaObject} from "@ionic-native/media";


public constructor(private mediaPlugin: MediaPlugin) {[...]};


this.mediaPlugin.create(mysong.url, (status: number) => {
    console.log('STATUS: ' + status);
    (m: MediaObject) => {
        console.log('success callback!!!');
        this.myMediaInstance = m;
    () => {
        console.log('error callback!!!');                        


And there is no console.log at all.

Can you take a look at this @mhartington, please ?

My system info:

Cordova CLI: 6.5.0
Ionic Framework Version: 2.2.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 1.1.4
ios-deploy version: 1.9.0
ios-sim version: 5.0.11
OS: macOS Sierra
Node Version: v7.1.0
Xcode version: Xcode 8.2.1 Build version 8C1002

Tanks in advance.

Happening to me too.

Related github issue:

This fixes the issue: