在phonegap中集成Flurry插件

时间:2013-05-28 15:33:23

标签: iphone ios cordova flurry

我按照此链接(https://github.com/jfpsf/flurry-phonegap-plugin)将flurry插件集成到phonegap iPhone应用中。

在链接中给出的集成之后。 我打电话给flurry方法:

flurry.startSession('XYZ',function(){
                                                             alert('success session');
                                                             },function(){
                                                             alert('fail session');
                                                             });

                         flurry.logEvent('app logevent',function(){
                                         alert('success logEvent');
                                         },function(){
                                         alert('fail logEvent');
                                         });

没有给出任何回应。 当应用程序通过单击主页按钮发送到后台并再次打开应用程序发生了乱舞事件并且工作正常。 任何人都可以帮助我。当应用程序来自后台时,为什么flurry插件方法正常工作?

提前致谢。

1 个答案:

答案 0 :(得分:0)

Please ensure that you press the home button before closing the app. This is required in order to complete the Flurry reporting lifecycle.

请在此stackoverflow帖子中阅读正确的答案:Adding Flurry in the alertView