3

I'm new to Flurry but I've implemented the SDK based on the official documentation, and it seems to be "working". Sessions are started correctly and events are tracked but never ever sent to server. What am I missing?

A similar issue has been posted here

My project configuration is as follows:

  • GooglePlayServices version: com.google.android.gms:play-services-gcm:7.5.0
  • Flurry Version: FlurryAnalytics-5.6.0.jar

Any help is greatly appreciated.

Community
  • 1
  • 1
Zsolt Boldizsar
  • 2,447
  • 2
  • 27
  • 37

1 Answers1

3

The problem is likely because you are selectively compiling the GooglePlayServices SDK. You are adding only Google Cloud Messaging (gcm) as a dependency. You need to also include the ads module to use Flurry.

That is, if you don't have com.google.android.gms:play-services:7.5.0 (the entire Google Play Services API) in your build.gradle, you should have at least com.google.android.gms:play-services-ads:7.5.0 or com.google.android.gms:play-services-analytics:7.5.0(note the addition of ads and analytics at the end), in addition to your other dependencies.

After you do this (and you have Flurry DEBUG log enabled), you should see "Analytics report sent" after each new session begins.

Zsolt Boldizsar
  • 2,447
  • 2
  • 27
  • 37
ugo
  • 2,705
  • 2
  • 30
  • 34
  • Yes @Ugo, good point. I'm not sure about ads though, because I fixed it the day I posted the question with adding the analytics package to my dependencies. I will check if your solution works, and mark the answer afterwards. Thanks for your time. Cheers. – Zsolt Boldizsar Aug 03 '15 at 07:09
  • @ZsoltBoldizsár, glad to know you've solved the problem, but I'm not quite sure how you did it. Your question implied that you had already added the Flurry analytics package. Out of curiosity, what else did you have to add? – ugo Aug 03 '15 at 17:38
  • I was referring to the Google Analytics package (com.google.android.gms:play-services-analytics:7.5.0) – Zsolt Boldizsar Aug 03 '15 at 18:15
  • 1
    Yes, that makes sense. The `AdvertisingIdClient` which Flurry uses is part of the Google Analytics API. The Google Ads API has the Analytics API as a transitive dependency, so it is better to include the Analytics API directly. – ugo Aug 03 '15 at 19:05