hyperlab / TiMixpanel

Mixpanel integration for Titanium Mobile
22 stars 12 forks source link

For android app, not able to update super properties #30

Closed Niral2110 closed 8 years ago

Niral2110 commented 8 years ago

Hi,

I am using version 0.9 for android with titanium SDK 5.1.2 GA. Basically I need to increment a super property whenever a page is traversed by user. For that I am using following code. here "count" variable holds total counts, fetched from database.

mixpanel.registerSuperProperties({ 'myPageViewCount' : count++ });

But what i noticed is, when event is traversed first time, it registers property with initial value, & afterwards it remains same, even if I am setting it with increment.

Help required urgently, I am in between of something very important. Thanks in advance.

jonatansberg commented 8 years ago

Hello @Niral2110, I'm afraid that I'm not in a very good position to help you at the moment. However, this module is only a thin wrapper around the Mixpanel SDK. Try updating their SDK and rebuild the module to see if that fixes your problem.

If you fix it, a pull request would be very appreciated! :)

Cheers, Jonatan

Niral2110 commented 8 years ago

capture

There is a bug in core java file as above, it should be reverese of what it is right now.