I am using a third party android SDK for some functionalities (card reader, QR code scanner), I am able to use it in the native Android app, now I want to create a hybrid app on ionic and I want to use that 3rd party library.
Thanks in advance.
So finally I got the answer and it was pretty straight forward
If you have exported your module / plugin like
module.exports = new YourPluginJavaClass();
then you will be able to use it in your Ionic application as
(window as any).YourPluginJavaClass.yourFunction();
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.