简体   繁体   中英

How to import Cordova Plugin (IndoorAtlasSDK) into Ionic

I'm trying to import and use the Cordova Plugin IndoorAtlas SDK into an Ionic Project. I tried different Tutorials/AnswerForums from all over the Inte.net but none of them worked. So that's why I'm asking here. The Ionic Project is using Angular.

I have already set up an Ionic Cordova Angular Project and imported the IndoorAtlas plugin using the following code:

cordova plugin add "path"

Is this correct this way? I also read somewhere that I have to create a wrapper to use the plugin? How can I start using the plugin in my Project?

Thanks in advance!

文件夹结构插件

You can use Ionic Native to get a nicer Typescript API if the plugin is implemented. But as you said this is just a wrapper library. You can always use the JavaScript functions from the plugin in your Ionic app.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM