Вопрос

I would like to add Flurry to an iPad app that is meant to stay running in the foreground for several weeks.

Flurry apparently only uploads information to its servers on events such as app start, app close, app pause, but I don't expect my app to enter those states very often. I need app feedback sooner.

Is it possible to force Flurry to send data on a timer, say every hour or two?

Это было полезно?

Решение

I found a way that seems to work. To test, I created an NSTimer that calls [FlurryAPI startSession:@"yourKeyHere"] every five minutes, then let my program run without stopping or pausing it in any way, and the event data is appearing on the Flurry server.

The comments above that method in the .h file do say "start session, attempt to send saved sessions to server", so in a sense it's documented, but it feels like a hack to have to call something called startSession more than once per application run. This is partly why I'm switching to MixPanel, which has a documented upload interval feature.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top