firebase-ios-sdk icon indicating copy to clipboard operation
firebase-ios-sdk copied to clipboard

FR: Analytics support on watchOS

Open jroets opened this issue 5 years ago • 42 comments

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.

jroets avatar Dec 27 '19 15:12 jroets

+1

hannesjung avatar Mar 02 '20 16:03 hannesjung

+1

nstr avatar Mar 03 '20 06:03 nstr

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

jostster avatar Mar 10 '20 20:03 jostster

@jostster FirebaseAnalytics is not open source.

paulb777 avatar Mar 10 '20 20:03 paulb777

@paulb777 Do you know if it is on the roadmap to allow it to work on watchOS? It seems https://github.com/firebase/firebase-ios-sdk/issues/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.

jostster avatar Mar 10 '20 20:03 jostster

@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.

paulb777 avatar Mar 10 '20 20:03 paulb777

Screenshot1

Any updates on this?

kutsin avatar Sep 18 '20 18:09 kutsin

@kutsin Nothing new to report about Analytics platform coverage.

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

paulb777 avatar Sep 18 '20 18:09 paulb777

Still no watchOS support for analytics?

GeylanKalafMohe avatar Nov 22 '21 20:11 GeylanKalafMohe

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.

paulb777 avatar Nov 22 '21 21:11 paulb777

+1

plotkin avatar Nov 27 '21 10:11 plotkin

@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?

curiousdustin avatar Dec 22 '21 22:12 curiousdustin

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.

paulb777 avatar Dec 22 '21 23:12 paulb777

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

Annelies1 avatar Jun 20 '22 13:06 Annelies1

+1

wangjian81 avatar Jun 20 '22 18:06 wangjian81

+1

MateuszW13 avatar Jun 27 '22 17:06 MateuszW13

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

gpfister avatar Jun 29 '22 06:06 gpfister

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

paulb777 avatar Jun 29 '22 16:06 paulb777

@paulb777 I have created the feature request #9966

gpfister avatar Jun 30 '22 08:06 gpfister

+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 :)

ghost avatar Sep 24 '22 12:09 ghost

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.

gohnjanotis avatar Oct 20 '22 14:10 gohnjanotis

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...

gpfister avatar Oct 25 '22 16:10 gpfister

+1

santiagogarzon avatar Jan 19 '23 22:01 santiagogarzon

+1

RichardFevrier avatar Jul 02 '23 11:07 RichardFevrier

+1

pansuriyaravi avatar Sep 05 '23 09:09 pansuriyaravi

+1

danilaferents avatar Oct 16 '23 13:10 danilaferents

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

thevenusbhatia avatar Oct 30 '23 09:10 thevenusbhatia

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

denandreychuk avatar Nov 17 '23 16:11 denandreychuk

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

LOOHP avatar Jan 04 '24 16:01 LOOHP

+1

pascal-sb avatar Jan 22 '24 15:01 pascal-sb