Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use this plugin in Ionic 3? #9

Open
soubhikchatterjee opened this issue Oct 5, 2018 · 2 comments
Open

How to use this plugin in Ionic 3? #9

soubhikchatterjee opened this issue Oct 5, 2018 · 2 comments

Comments

@soubhikchatterjee
Copy link

I have managed to get my ionic app in the "Share List" in ios, but my problem is the code you mentioned in the "Usage" section of the readme, I have copied the entire code in the constructor of my home.ts file but typescript is complaining with an error message "[ts] Cannot find name 'cordova'."

Please tell me how can i use this plugin in my Ionic 3 app?

Many thanks in advance.

@Flucadetena
Copy link

hey @soubhikchatterjee the way to use it in Ionic 3 is to use: (<any>window).plugins instead of cordova. For example:
this: (<any>window).plugins.openwith.setLoggedIn(true); Instead of: corodva.openwith.setLoggedIn(true);

I know this works, but i'm getting this other error: "The executable was signed with invalid entitlements".

If you manage to make it work please let me know and help. Thanks.

@rafaelmrdyn
Copy link

rafaelmrdyn commented Sep 27, 2019

"declare let cordova;" on the top of file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants