Sitata / titanium-google-analytics

Google analytics for Appcelerator Titanium
MIT License
92 stars 47 forks source link

Added support for manual dispatching of events. #40

Closed mannypp closed 8 years ago

mannypp commented 9 years ago

Google analytics has the ability for you to turn off the dispatchInterval by setting it to 0. This in turn requires the user to call [[GAI sharedInstance] dispatch]; to send the events to google. In our implementation we only send the events out when there is no other network activity happening. Adding this function to the proxy object allows us to control when the events are sent.

astjohn commented 9 years ago

Thanks for this! I'll take a look and try to get it merged into the next release soon.

astjohn commented 8 years ago

It's been a while, but I'm working to push out a 3.2.0 release which will fix up some issues with Android and include this pull request among others. The event will most likely be called manualDispatch when it is merged into the final release.

Cheers!