Cordova plugins supported in Ionic?

Precisions about the d.ts file :

In order to access to “window.plugins” with TypeScript you have to add a definition :

in :
typings/globals/window/index.d.ts

(create “window” folder and “index.d.ts” file)

and write in index.d.ts :

interface Window {
	plugins: any;
}

This allows you to use “window.plugins” with typescript.

see my response on this thread for a more complete answer :

1 Like