Skip to content

FR: Analytics support on watchOS #4557

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

Open
jroets opened this issue Dec 27, 2019 · 41 comments
Open

FR: Analytics support on watchOS #4557

jroets opened this issue Dec 27, 2019 · 41 comments

Comments

@jroets
Copy link

jroets commented Dec 27, 2019

Please add Firebase Analytics support to SDK on watchOS, so that we can record to Firebase Analytics directly from watch apps in the same way we can on iOS apps.

To my knowledge right now, to record analytics data from a watch app to Firebase Analytics requires proxying through the SDK running on the iPhone. Or else don't use Firebase for analytics and instead record to GA using its web API (there is no GA SDK for watchOS). Or use a non-Google analytics provider that actually does offer a watchOS SDK, like Yahoo's Flurry SDK. Less than ideal for those of us who want to use Firebase Analytics from a watch app.

@hannesjung
Copy link

+1

1 similar comment
@nstr
Copy link

nstr commented Mar 3, 2020

+1

@jostster
Copy link
Contributor

+1, Is analytics for iOS open source? I'm not seeing the code for doing community support for watchOS.

@paulb777
Copy link
Member

@jostster FirebaseAnalytics is not open source.

@jostster
Copy link
Contributor

@paulb777 Do you know if it is on the roadmap to allow it to work on watchOS? It seems #4558 will be held up by the community without the watchOS support on Analytics since it looks like the FirebaseCrashlytics backend activation requires the Analytics to ping the server.

@paulb777
Copy link
Member

@jostster I can't speak about roadmaps, but I can say that watchOS is a lower priority than Catalyst, tvOS, and macOS.

Also, Crashlytics does have support for Catalyst, even thought Analytics is not available.

@kutsin
Copy link

kutsin commented Sep 18, 2020

Screenshot1

Any updates on this?

@paulb777
Copy link
Member

@kutsin Nothing new to report about Analytics platform coverage.

We'll eliminate that warning in an upcoming release in the meantime.

@GeylanKalafMohe
Copy link

Still no watchOS support for analytics?

@paulb777
Copy link
Member

Not yet. We introduced macOS, catalyst and tvOS in 8.9.0 and will try to follow up with watchOS.

Please keep adding thumbs-up's to this feature request to help us with prioritization.

@plotkin
Copy link

plotkin commented Nov 27, 2021

+1

@curiousdustin
Copy link

@paulb777, Thank you for the updates on this.

Are you able to tell us the nature of the hold up on this?

Is it simply a matter of prioritization and dev resources?

Or, is there some dependency that needs to be resolved first? Perhaps another related Google library, or some library or feature that Apple needs to add or support within watchOS?

Also, is there any official recommendation from your team on how developers should approach analytics for their watchOS apps when Firebase is already being used for analytics and other features within respective companion iOS apps? @jroets mentioned some alternatives, is one of them recommended?

@paulb777
Copy link
Member

Hi @curiousdustin It's primarily a prioritization question, along with an assessment of the watchOS/tvOS beta.

In the meantime, I encourage those interested to thumbs-up this feature request.

Sorry I don't have any alternative recommendations.

@Annelies1
Copy link

Hi, I see WatchOS is not yet supported for Firebase analytics. Please add it soon.
+1 for this feature request.

@wangjian81
Copy link

+1

1 similar comment
@MateuszW13
Copy link

+1

@gpfister
Copy link

Hi,

I face some issue building for watchOS using same code base as the companion iOS app. I think it should be nice to have an "empty" framework, especially that SPM first try to resolve dependencies even if there's a condition.

I would love overall Analytics and Crashlytics on watchOS, but as I understand it can be a challenge, but meanwhile just making the curent package available for watchOS, event if it doesn't build, would allow to using target dependency condition to ignore it for watchOS (similar to building FirebaseFirestore framework, which gives an error (about storage).

Thanks in advance for your support.

Kind regards,
Greg

@paulb777
Copy link
Member

@gpfister Interesting idea. Would you create a separate issue to track?

@gpfister
Copy link

@paulb777 I have created the feature request #9966

@ghost
Copy link

ghost commented Sep 24, 2022

+1 -- I would love to see this feature Implemented also. Analytics should be available on all apple platforms.. why not? Firebase is the best SDK... as it should be. So should support all features for all app platforms :)

@gohnjanotis
Copy link

In the meantime, does anyone have a workaround to get Xcode Previews to work with a watchOS target when Firebase is added to the iOS target?

I can build and run fine on an Apple Watch simulator or real Apple Watch, but when I try to run Xcode Previews I encounter this issue: #7610

That issue is closed, because it seems it was resolved at some point in Xcode 13, but I am experiencing the issue again on Firebase 10.0.0 and Xcode 14.0.1 without any workaround to use Xcode Previews for watchOS apps.

@gpfister
Copy link

Hi,

@gohnjanotis, I don't have an easy workaround. I ended up splitting into multiple libraries and use pre-compiler instruction based on the target OS (#if os(iOS) ... #endif) in order to avoid compilation issues. It worked, as the code that was calling for analytics only was necessary on iOS, so it was possible to split (for example, I had a AuthLite lib and Auth lib, the AuthLite would have the basic for the watch, while the Auth "full" would have the extension for iOS).

I hope it helps. In any case I would say that the issue is really on the SPM side, as I don't think sub-dependencies should be resolved if the dependency it self is not to be considered...

@santiagogarzon
Copy link

+1

3 similar comments
@RichardFevrier
Copy link

+1

@pansuriyaravi
Copy link

+1

@danilaferents
Copy link

+1

@thevenusbhatia
Copy link

+1,
Please add the support of Analytics to watchOS and visionOS, too. (if possible)

@denandreychuk
Copy link

+1. It would be great to have Firebase Analytics on watchOS

@LOOHP
Copy link

LOOHP commented Jan 4, 2024

+1. It would be nice to have Firebase Analytics on Standalone WatchOS like their WearOS counterparts.

@pascal-sb
Copy link

+1

2 similar comments
@ktech643
Copy link

+1

@opgeROBt
Copy link

+1

@rockshassa
Copy link

+1 please @paulb777

@Flatout73
Copy link

+1

5 similar comments
@GreeMoz
Copy link

GreeMoz commented Jun 28, 2024

+1

@alishaiduc7
Copy link

+1

@bpkelsey
Copy link

bpkelsey commented Oct 8, 2024

+1

@marcgg
Copy link

marcgg commented Jan 16, 2025

+1

@DanielMartini
Copy link

+1

@Jager-yoo
Copy link
Contributor

Our production iOS app already uses Firebase Analytics, so I also need to send logs from the watchOS target to the same place.
But since Firebase Analytics doesn’t officially support watchOS, I’m forced to proxy events through the companion iOS app. You know, this process is very complex and really time consuming.

Amplitude supports watchOS officially and is very easy to set up, but changing the whole analytics system isn’t a realistic option. I know there is a community workaround, but it uses CocoaPods. As you might know, CocoaPods will become read-only in December 2026, so this solution won’t last long or be sustainable.
Please consider expediting official support for watchOS or even just a lightweight SPM package for watchOS would be incredibly helpful.

@MoonPandragon
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests