hansemannn / titanium-firebase-analytics

Use the Firebase Analytics SDK in Axway Titanium 🚀
Other
35 stars 18 forks source link

Android: FirebaseInstanceIdService Timeout #39

Closed awarnes closed 5 years ago

awarnes commented 5 years ago

Hello, and thank you for making this module! I'm trying to get the Android side of it working for basic analytics (really just need the total users). iOS has been working fine in the app, but Android keeps failing around a service timeout on .../com.google.firebase.iid.FirebaseInstanceIdService. I'm sure I have a setting wrong, or some other conflict going on but I've been unable to debug it at this point. The full error log: firebase_crash.txt (line 64 shows the timeout error, and line 98 is where the ANR explanation starts). This crash prevents the app from opening/continuing and shows the generic "App Not Responding" error modal.

I've read a few articles about the FirebaseInstanceIdService being deprecated, but figured that it should still be okay if it's working for iOS?

I'm currently using TiSDK 7.4.2.GA, firebase.core 3.0.2, and firebase.analytics 2.2.2. I've included only the information from the README.md in the manifest/application area.

I've tried building without the firebase.analytics module and it works fine (firebase initializes successfully, and the app starts like normal), but of course no information passes through. I've attempted the suggestions in the Not Getting Data On Android thread, but to no avail. Any help/suggestions would be greatly appreciated! Please let me know if there's anything else you'd need to know to diagnose. Thank you!

hansemannn commented 5 years ago

Not using the InstanceIdService in latest versions anymore, since Google also replaced it, so this should not be a deal anymore :-)