bitstadium / HockeySDK-Cordova

HockeyApp was retired and the SDKs are deprecated. Please use App Center instead.
https://github.com/microsoft/appcenter-sdk-cordova
Other
82 stars 73 forks source link

Track events is not working #79

Closed kigero closed 7 years ago

kigero commented 7 years ago

I'm calling into the hockeyapp API like this:

hockeyapp.start(null, null, 'my-id', true);
hockeyapp.trackEvent(null, null, 'OPENED');

I never see the event in the HockeyApp dashboard. The session is recorded properly, and crashes make it OK, just the events are not showing up. If I add a handler for the success and error callbacks, the success callback is called. Any ideas why this is not working?

ElektrojungeAtWork commented 7 years ago

Hey @kigero,

Which platform are you targeting with your app, iOS or Android?

Best, Benjamin

bmourat commented 7 years ago

Hi @kigero

Are you using the latest version of HockeySDK-Cordova plugin? I've checked both on ios and android and this code work as expected. There is some delay between calling trackEvent method and events actually appearing on the portal, but that's normal. If this issue is still bothering you, can you please provide some details on your setup and platform you are testing on?

Best, Murat

kigero commented 7 years ago

It looks like I've started to get events now - there just must be a longer delay than I was expecting before the events show up. So it looks like this is working as expected, with the delay.

For the record, this was on the latest plugin version and on iOS.

Thanks!