I am creating new Ionic2 typescript application. Few of the required native access plugins are not available in ionic native till now(Routed device check plugin, Read SMS plugins etc). So i required to use cordova plugins directly with out intervention of ionic native class and injection formalities. your suggestions are appreciable. thanks
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
There is absolutely nothing to stop you from using these plugins. Just tell typescript that they exist like so:
declare var rootdetection:any;
If you want to be proficient about it, writing your typing(an interface with all the plugins functionality) for the plugin and add it to your project