-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Firebase Analytics on iOS Extensions is not working correctly #2896
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Internally tracked at b/131333733 |
Hi @paulb777! |
Hi @giorgia FirebaseAnalytics is not currently supported with iOS extensions. There are some details at https://firebase.google.com/docs/projects/multiprojects. |
Hi @paulb777, thank you for your answer. |
@giorgia It's an open question that we're working to resolve. |
@paulb777 Any updates of this question? Since Google Analytics is sunsetting, we're also looking for a solution to replace the GA SDK Thanks! |
Allen, can you answer @JessicaGiphy's question? |
@JessicaGiphy we have not made any changes concerning extensions on the SDK. |
Thanks for the quick response |
@paulb777 is it true that app extensions for iOS are still not supported for Firebase Analytics (and hence Crashlytics)? This seems like a BIG deal, as many, many apps have app extensions that need to be monitored for analytics and crashes. |
@inPhilly Firebase Analytics does not support iOS extensions. Based on https://stackoverflow.com/questions/27146019/how-to-use-crashlytics-with-ios-os-x-today-view-extensions, it looks like Crashlytics does have extension support. Presumably Crashlytics will work with the exception of its features that depend on Analytics. Please open a separate issue for Crashlytics and extensions if you'd like to follow up in more detail. |
Crashlytics is what I cannot get verified for the app extension. Firebase picks up the plist file for the regular app first when running the app extension, throws an error because if this, and can’t see the file for the app extension. The app extension must be a separate app in firebase as it has a separate bundle id in Xcode; hence it has its own plist file with its own bundle id; but when running an app extension, for some reason, firebase picks up the regular app’s file and not the app extension’s file. I have pored over all of your documentation (months ago, gave up, came back again this weekend to give it another go in case you had fixed the errors - they have not been fixed) - and there is no way to do this listed anywhere. One project, two apps (one the regular app/appId and one the extension app/appId), and two plist files with the same name but different bundleIds and firebase app ids. Try it yourself and please point me to a *working* example anywhere on the web if I am wrong. Please - point me to some way to get my app extension verified in firebase for even Crashlytics alone.
… On Jan 4, 2020, at 10:29 AM, Paul Beusterien ***@***.***> wrote:
@inPhilly Firebase Analytics does not support iOS extensions.
Based on https://stackoverflow.com/questions/27146019/how-to-use-crashlytics-with-ios-os-x-today-view-extensions, it looks like Crashlytics does have extension support. Presumably Crashlytics will work with the exception of its features that depend on Analytics.
Please open a separate issue for Crashlytics and extensions if you'd like to follow up in more detail.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
@inPhilly Understood. And sorry to hear about how challenging this is. Please make an issue specific to Crashlytics so we can route a succinct issue to that team. This issue is about Analytics. |
@paulb777 can analytics handle this job or not? in iOS extensions now |
@slatop As pointed out above, Firebase Analytics does not currently support iOS extensions. |
@paulb777 Thank you. When can I use firebase in the extension. I have a keyboard extension project that needs analytics support after fabric fails. Very urgent. please . please. please |
@slatop Sorry, it's on the list of requested features but support isn't planned in the near future. |
Any news on this? Its been a year and a half since it was reported... Every good app nowadays has at least one extension, meaning broken analytics is a real deal breaker. |
Any update? How to add firebase Analytics to the ios App extensions? |
Please provide us tentative timelines on when firebase will start support for app extensions. We have been waiting for this for a long time. |
For anyone struggling with getting the debug view output to show up in an iOS extension, it helped to add this line under FirebaseConfiguration.shared.setLoggerLevel(.debug) Essentially, my issue was the |
I could be running into other issues but as far as I can tell, setting the LogLevel does not enable DebugView within the Firebase Console. |
Did anyone manage to get it working or somehow see anything in events debug view in Firebase console? I'm trying to use Firebase Analytics from Notification Service extension but so far no success... |
Just to give some summary of my attempts on the issue:
|
A year later. This is a huge pitfall of Firebase. I understand extensions are short-lived, but there are ways to get around it. I'm playing with the idea of an app group to transfer data from extension to target app, but the API like Analytics.logEvent don't allow me to alert the timestamp from what I can tell. So I'm having to tell my PO we either live with horribly wrong analytics data, or none at all (if we use Firebase). |
Yeeeeears later and I think this is still an issue. I have an app with multiple extensions that it would be great to have som analytics on via Firebase, completely unsure how to go about this as I seem to just come up against these older threads when I search for it. Any update? |
We would also be interested in it and waiting for an update. We'd like to add Firebase Performance Monitoring to our widgets |
DAU are wrong on iMessage extension
On iOS extensions (iMessage and Keyboard) the numbers of Firebase DAU looks wrong.
I've compared them with Fabric DAU and the discrepancy is 10x lower in Firebase vs Fabric. I know they are different product etc, but the strange part is that on the main app the numbers are almost exactly the same.
Moreover, I've been checking some of the main app events that should trigger a user_engagement event.
session_start (automatically fired by Firebase), compared to the number of users that triggered that event result to be 15x bigger than the DAU.
While on the main app DAU and users triggering the session_start is the same number.
Environment:
Steps to reproduce:
Observing the live stream you can noticed the the user_engagement is almost never fired on iMessage extension.
The text was updated successfully, but these errors were encountered: