cordova-plugin-safariviewcontroller
cordova-plugin-safariviewcontroller copied to clipboard
Usage within Vue app
Im creating a Vue app in a Cordova shell. I want to open PDF files which are located on an external server.
[email protected] [email protected] [email protected] [email protected]
im using the next code:
export default { methods: { openUrl(url, readerMode) { window.plugins.SafariViewController.isAvailable(function (available) { dostuff; } } } }
but it doesnt seem to work. btw ive also tried to call SafariViewController directly AND like window.SafariViewController but none of them work;
cordova config.XML:
yes cordova is loaded in my index
Could anyone help me?