firebase / firebase-ios-sdk

Firebase SDK for Apple App Development
https://firebase.google.com
Apache License 2.0
5.41k stars 1.43k forks source link

FR: Analytics support on watchOS #4557

Open jroets opened 4 years ago

jroets commented 4 years ago

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 commented 4 years ago

+1

nstr commented 4 years ago

+1

jostster commented 4 years ago

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

paulb777 commented 4 years ago

@jostster FirebaseAnalytics is not open source.

jostster commented 4 years ago

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

paulb777 commented 4 years ago

@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 commented 3 years ago
Screenshot1

Any updates on this?

paulb777 commented 3 years ago

@kutsin Nothing new to report about Analytics platform coverage.

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

GeylanKalafMohe commented 2 years ago

Still no watchOS support for analytics?

paulb777 commented 2 years ago

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 commented 2 years ago

+1

curiousdustin commented 2 years ago

@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 commented 2 years ago

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 commented 2 years ago

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

wangjian81 commented 2 years ago

+1

MateuszW13 commented 2 years ago

+1

gpfister commented 2 years ago

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 commented 2 years ago

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

gpfister commented 2 years ago

@paulb777 I have created the feature request #9966

ghost commented 1 year ago

+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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

+1

RichardFevrier commented 1 year ago

+1

pansuriyaravi commented 10 months ago

+1

danilaferents commented 8 months ago

+1

thevenusbhatia commented 8 months ago

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

denandreychuk commented 7 months ago

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

LOOHP commented 6 months ago

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

pascal-sb commented 5 months ago

+1

ktech643 commented 5 months ago

+1

opgeROBt commented 4 months ago

+1

rockshassa commented 3 months ago

+1 please @paulb777

Flatout73 commented 6 days ago

+1

GreeMoz commented 6 days ago

+1