I create ionic 2 project and add diagnostic cordova plugin like this : ionic plugin add cordova.plugins.diagn