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

When is it safe to use the plugin? #1

Closed
mansxu opened this issue Jun 14, 2016 · 1 comment
Closed

When is it safe to use the plugin? #1

mansxu opened this issue Jun 14, 2016 · 1 comment
Labels

Comments

@mansxu
Copy link

mansxu commented Jun 14, 2016

I am trying to figure out when the plugin is loaded. I tried tying it to the ready event on the document, but calling Pebble gives me an error. When I call the methods after the page is loaded (say, by pushing a button) everything works fine. Is there a particular event that tells me the interface is available and ready to use?

@tgardner
Copy link
Owner

The pebble plugin is available after the deviceready event fires.

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

No branches or pull requests

2 participants