firebase / firebase-ios-sdk

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

FR: watchOS Support #269

Closed mknippen closed 4 years ago

mknippen commented 7 years ago

With the release of watchOS 4 and an LTE Apple Watch, there’s no better time to plan support for Apple Watch. The Series 3 Watch has significantly more power, and applications will want to connect to Firebase.

salqadri commented 7 years ago

Hi Matthew! Yes WatchOS4 looks awesome and we are keeping a close watch (pun intended) on this platform. We will continue to evaluate officially supporting the platform as it grows in apps and users, but until we do, we welcome any community contributions in this area.

boblepepeur commented 6 years ago

I'm In !

coolioxlr commented 6 years ago

+1

robpeach commented 6 years ago

+1

dyah10 commented 6 years ago

+1

wipnick commented 6 years ago

+1

ugenlik commented 6 years ago

+1

Lawris commented 6 years ago

+1

polok commented 6 years ago

+1

thattyson commented 6 years ago

+1

AsteaDevelopment commented 6 years ago

+1

fabricio-stein commented 6 years ago

+1

GioPalusa commented 6 years ago

Watch OS 5 is here, and an addition with Firebase to WatchOS would be greatly appreciated! +1

zhgchgli0718 commented 5 years ago

+1

mikemike396 commented 5 years ago

Any update on this?

mariohahn commented 5 years ago

+1

Supertecnoboff commented 5 years ago

2019 and still no watchOS support 😢

sotrosh commented 5 years ago

just watched firebase 2019. Added wearOS support. No watchOS support still.

pepejeria commented 5 years ago

I guess that this won't be an issue anymore with watchOS 6 since apps are independent?

mknippen commented 5 years ago

I think this will be a much bigger issue. Hopefully with all of the streaming data and network framework, we can make this available ASAP!

On Jun 6, 2019, at 4:09 AM, José Jeria notifications@github.com wrote:

I guess that this won't be an issue anymore with watchOS 6 since apps are independent?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/firebase/firebase-ios-sdk/issues/269?email_source=notifications&email_token=AABTJ3GQ25BNHTXFWAKTKATPZDH5NA5CNFSM4D24IZL2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXCHJBI#issuecomment-499414149, or mute the thread https://github.com/notifications/unsubscribe-auth/AABTJ3AD5RVKFDXAWYDRRK3PZDH5NANCNFSM4D24IZLQ.

Supertecnoboff commented 5 years ago

I think this will be a much bigger issue. Hopefully with all of the streaming data and network framework, we can make this available ASAP!

Surely you can add watchOS support because presumably watchOS 6 has the CFNetwork framework?

robbiet480 commented 5 years ago

My assumption is that watchOS won't be supported until Google Analytics is supported which is gonna be a long time since we don't have UIKit for watchOS and at this point it's unlikely we ever will with the introduction of SwiftUI, so GA would have to get rewritten to support SwiftUI or at least remove the hard requirement on UIKit.

ryanwilson commented 5 years ago

Started some investigation into this and kicked off the attempt with GoogleUtilities since it has no dependencies and is a dependency of all other Firebase SDKs - a few hurdles to start:

It looks like it may be possible to add support for individual subspecs and maybe that's the way to pare it down further, but unfortunately this won't be as easy as just adding s.watchos.deployment_target = '5.0'

If anyone else wants to make an attempt in the meantime, you may be able to start adding support for each subspec and then creating a new watchOS target in the Example Xcode project.

morganchen12 commented 5 years ago

@ryanwilson watchOS tests running on simulator are compiled against the iOS simulator target. This might change with standalone watch apps, but afaik hasn't yet in watchOS 6. iOS simulator testing + build targeting watchOS should be sufficient for watchOS for the time being. I made a PR to OCMock to add watchOS support, but it shouldn't be a blocker for testing.

ryanwilson commented 5 years ago

@morganchen12 makes sense, the issue I ran into was using pod lib lint and pod gen - the watchOS bit choked when getting to the test spec that depended on the OCMock pod. I disabled the test spec to generate the project instead.

Re: SystemConfiguration not being available, it looks like WatchConnectivity has a reachability function we can use to replace the one in SystemConfiguration.

larryonoff commented 5 years ago

It would be really appreciated to do watchOS support at least from 6.0.

morganchen12 commented 5 years ago

Additional FR #3453

sotrosh commented 5 years ago

any updates on this issue? watchOS 6 has released.

morganchen12 commented 4 years ago

watchOS support was merged into OCMock today. In preparation for this feature, we can start running tests on watchOS simulator once OCMock makes a new release.

kajensen commented 4 years ago

Any movement on this issue?

paulb777 commented 4 years ago

Progressing at #4016

paulb777 commented 4 years ago

Now that #4016 has merged with support for FirebaseMessaging and watchOS and will be part of the first release of 2020, I'm going to close this is umbrella issue.

Please open additional issues for any additional specific requested functionality for watchOS.

mknippen commented 4 years ago

@paulb777 Is this supporting the Firebase Database on independent watch apps, or just Firebase Messaging? The original ticket here was so that we can make read/writes to the Realtime Database in watchOS

paulb777 commented 4 years ago

@mknippen It's just Firebase Messaging so far.

Going back and looking at the OP, I don't see the Firebase Database mention.

How about creating another issue specifically for Database and watchOS? A similar issue could be created for any other requested Firebase libraries for watchOS. That will help us prioritize.

BTW, if anyone wants to work on this, the approach would be to update the relevant podspec's like #4016, working though any build issues, validating, and sending a PR.

n3at18 commented 4 years ago

@paulb777 @mknippen I've created a separate feature request for Realtime Database support: https://github.com/firebase/firebase-ios-sdk/issues/4556

jroets commented 4 years ago

I've created feature requests for Firebase Analytics and Firebase Crashlytics on watchOS: #4557 and #4558, respectively.