Telerik Mapbox: Cannot read property 'show' of undefined

I’m trying to use a non-native Ionic 2 plugin called Mapbox. The reference site is Telerik mapbox and I make the following steps:

  1. I install it via the cordova plugin add

  2. On the page where I want to render the native map I declare at the top declare var cordova: any;

  3. Finally call up the method to show the map

if (typeof cordova !== 'undefined') {
  console.log("cordova is undefined");

The error that returns is -> Cannot read property ‘show’ of undefined.
why? I followed the steps described above.

Hey @Treppaoli, as mentioned here try declare var Mapbox; in your component, then reference it like{...})