I've been attempting to incorporate the ThemeableBrowser plugin into my Ionic2 project using Typescript, but with no success so far.
a) I followed the documentation on the plugin's git page and added it to my project.
Unfortunately, I encountered an error stating 'cordova is not defined'.
b) Next, I tried installing typings for the plugin using the command:
"typings install dt~cordova-plugin-themeablebrowser --save --global"
However, I received an error: 'typings ERR! message Unable to find "cordova-plugin-themeablebrowser" ("dt") in the registry.'
c) In a final attempt, I decided to use a 3rd party JavaScript library within my Typescript project:
- I placed 'themeablebrowser.js' in the www directory of my project.
- I included this file in index.html.
- I declared the 'ThemeableBrowser' variable in my 'page.ts' file.
- Upon calling ThemeableBrowser.open('url', '_blank', options), I got the error 'open is not a function'.
If anyone can provide assistance, I would greatly appreciate it. Thank you!