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 import connectsdk in my ionic 3 app #66

Open
ghost opened this issue Oct 25, 2017 · 3 comments
Open

How to import connectsdk in my ionic 3 app #66

ghost opened this issue Oct 25, 2017 · 3 comments

Comments

@ghost
Copy link

ghost commented Oct 25, 2017

I added the cordova plugin using the following command in my ionic app
ionic cordova plugin add cordova-plugin-connectsdk

But I cannot use the method ConnectSDK.discoveryManager.startDiscovery(); in any page since I haven't imported the plugin to my page. I'm not sure how to import this particular plugin. any help?

@phablulo
Copy link

phablulo commented Jan 2, 2018

I'm a bit late but I hope to help someone else with the same issue.
The plugin is attached to Window object, so you don't need to import it.
After adding the plugin, just use declare var ConnectSDK; on the top of the page you want to use it.

@devroldan
Copy link

devroldan commented Jul 17, 2018

phabullo, does your solution work? The console sends the following error:

> Could not resolve all dependencies for configuration ':_debugApk'.
   > Project : declares a dependency from configuration 'debugCompile' to configuration 'debug' which is not declared in the descriptor for project :cordova-plugin-connectsdk:Connect-SDK-Android.

Can you mention in which version of ionic did it work?

@phablulo
Copy link

Not anymore, @devroldan. Two months ago I spent a couple days trying to make it work with no success. You could look up the forks to see if someone is still maintaining the project

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

2 participants