pebble-analytics icon indicating copy to clipboard operation
pebble-analytics copied to clipboard

Action not received by JS

Open sGerli opened this issue 8 years ago • 4 comments

I'm using pebble-events package. Your appmessage is not getting out of my app and I'm not getting any error. It would be great if you converted this into a Pebble Package and make it easy for people to setup now that Pebble analytics are down and probably will never be back.

sGerli avatar Dec 17 '16 19:12 sGerli

Hi @sGerli, sounds like a good idea. i will look into it as soon as possible.

r-dent avatar Dec 19 '16 12:12 r-dent

"Your appmessage is not getting out of my app and I'm not getting any error." @sGerli What do you mean with that? Are there no requests sent?

r-dent avatar Dec 21 '16 08:12 r-dent

I meant that the request wasn't getting to the JS and neither to GA but that might be a problem with my setup because I am using pebble-events https://www.npmjs.com/package/pebble-events to manage the app-message subscription

sGerli avatar Dec 24 '16 17:12 sGerli

I found my issue, my issue gives me this error:

pkjs> Error: Can't interact with the watch before the ready event is fired.
	at getAccountToken ((eval))
	at Analytics (pebble-js-app.js:946:31)
	at pebble-js-app.js:95:11
	at __webpack_require__ (pebble-js-app.js:20:30)
	at pebble-js-app.js:48:19
	at __webpack_require__ (pebble-js-app.js:20:30)
	at pebble-js-app.js:40:18
	at pebble-js-app.js:43:10

And it gets fixed if I put var ga = new Analytics([all of this things]); inside of the ready event.

sGerli avatar Jan 03 '17 17:01 sGerli