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

ZAFClient.init() returns false #79

Closed
ovvn opened this issue Dec 29, 2017 · 1 comment
Closed

ZAFClient.init() returns false #79

ovvn opened this issue Dec 29, 2017 · 1 comment

Comments

@ovvn
Copy link

ovvn commented Dec 29, 2017

Going to http://localhost:4567/index.html
Getting Uncaught TypeError: client.on is not a function at https://github.com/zendesk/app_scaffold/blob/master/src/javascripts/index.js#L12
since client variable is false here https://github.com/zendesk/app_scaffold/blob/master/src/javascripts/index.js#L9

@danielbreves
Copy link
Contributor

danielbreves commented Dec 31, 2017

Hi @ovvn, that's expected. ZAFClient only works when your app is in an iframe within the Zendesk application. For more info, see https://developer.zendesk.com/apps/docs/apps-v2/using_sdk#testing-an-app-locally.

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