phonegap-build / GAPlugin

Google Analytics Plugin
MIT License
170 stars 141 forks source link

Service Intent must be explicit in Android 5.0 #86

Open woodpd opened 9 years ago

woodpd commented 9 years ago

When we build our app with the GA Plugin and Android target SDK version = 21 (Lollipop) it crashes on Android 5.0 every time and the stack trace reports that the GA service intent must be explicit. This is explained in the SO post linked below and is related to changes in Android that need to be catered to - please address this as we're having to run as Target SDK version 19 at the moment

http://stackoverflow.com/questions/26530565/android-5-0-l-service-intent-must-be-explicit

iwantwin commented 9 years ago

Yes, the problem for this specific plugin seem to be solved when the google analytics plugin library will be updated from version v2 to v3 - Changeguide can be found here: https://developers.google.com/analytics/devguides/collection/android/v3/migration

woodpd commented 9 years ago

Hey @shazron noticed you mentioned in #64 that you'd be looking at upgrading Android after you finished the iOS upgrade. Is this still on your roadmap?

woodpd commented 9 years ago

Also, looks like Google now have a v4 out - https://developers.google.com/analytics/devguides/collection/android/v4/

rlisperguier commented 9 years ago

i'm having the same problem, any estimated date for the sdk update?

Thanks

levi-cit commented 9 years ago

Any update on this issue?

umer-ashraf commented 9 years ago

Guys any update on this?

Carlos487 commented 9 years ago

It would be nice if it is corrected at a plugin level, al least at the moment the workaround to use targetsdk 19 has worked, but it was needed to change in androidmanifest.xml and in project.properties

123AndGo commented 9 years ago

Having the same problem, any update? Thanks!

Carlos487 commented 9 years ago

If you need to use other plugins that rely on android target 22 my workarround doesn't work anymore, looking for an alternate plugin.

Like cmackay and danwilson.

It'ss sad that people from phonegap haven't even acknowledge or comment about this issue.