-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
FR: RealtimeDatabase support for WatchOS #4556
Comments
Request for Firestore support is #4559 |
+1 here. I opened #269 a few years back with this intention. This ticket is specifically for the real-time database |
Please note that this is likely not something that we will officially support in the Realtime Database SDK. We do welcome community contributions though and can release this as an "unofficial" feature (similar to how we rolled out MacOS support). |
Thanks for letting us know. Could you please clarify the reason? Are you going to stop supporting Realtime Database at all and we should migrate to Firestore ASAP or it's something else? |
@n3at18 To clarify, RTDB is the same as the rest of Firebase. Only iOS is officially supported. All other Apple platforms are community supported. |
And to expand a bit further... even though it's not "official", investigations and work are being done to support watchOS as the requests roll in. We prioritize the requests against other features and issues and make decisions based on that (things like thumbs up reactions on issues like this are a strong indicator for us that a feature is highly requested). Work is definitely being done to support multiple Apple platforms (the vast majority of products do work on tvOS, macOS, and Catalyst already) but we can't give word on if/when individual platforms would become "officially" supported. |
We love the RTDB as much as our customers and will continue to support it on all currently supported platforms. |
One camp is saying it's not a great idea to try and communicate with Firebase directly from watchOS and it's better to prepare data in the iPhone app and pass it on to the watch using updateApplicationContext i.e. WatchConnectivity. However the other camp is saying the use of WatchConnectivity places a lot of restrictions on the watch app (it can only get data from the phone when the phone app is running) so we should use the Firebase REST API directly from your watch app. If you choose to use the REST API, you don't need the watch app to communicate with the iPhone counterpart, the watch app can directly get the Firebase data using network requests. However, in this scenario, the network usage will be bigger. |
One important thing to look at is where watchOS is going. With watchOS 6, Apple now supports a complete App Store on the Watch, without having a separate app on the iPhone. Fitness apps are a great example.
With each watchOS release since version 3, Apple has worked on making the device more independent. As it continues to grow, there’s going to be a greater need for independence from the phone.
… On Jan 13, 2020, at 5:46 AM, Tysun Edison 泰森 타이슨 ***@***.***> wrote:
One camp is saying it's not a great idea to try and communicate with Firebase directly from watchOS and it's better to prepare data in the iPhone app and pass it on to the watch using updateApplicationContext i.e. WatchConnectivity.
However the other camp is saying the use of WatchConnectivity places a lot of restrictions on the watch app (it can only get data from the phone when the phone app is running) so we should use the Firebase REST API directly from your watch app. If you choose to use the REST API, you don't need the watch app to communicate with the iPhone counterpart, the watch app can directly get the Firebase data using network requests. However, in this scenario, the network usage will be bigger.
Does anyone actually know if Facebook, WeChat, LINE, Kakao watch messaging apps are using REST API or WatchConnectivity or hybrid?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#4556?email_source=notifications&email_token=AABTJ3FA77M7HSMD4HLXUMTQ5RICJA5CNFSM4J74VHCKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIYNKDI#issuecomment-573625613>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AABTJ3FQIOENPMEOSVALEJLQ5RICJANCNFSM4J74VHCA>.
|
Totally agree with this statement. Since Apple is likely to try and sell the watch beyond the iPhone users. Having independence makes sense. Please support WatchOS officially. |
I have a proof of concept working (read: definitely not release-ready, or tested in any way outside of the very straightforward case) on a branch: https://github.com/firebase/firebase-ios-sdk/tree/rw-database-watchos. I'm hoping before the end of the year to flesh it out further, test it, and add it experimentally to the CocoaPod and Swift Package. |
If websockets through NSURLConnection works for the watch could it perhaps replace the third party web socket implementation for all targets in the future? |
Yes, that's the plan! Unfortunately the minimum iOS version for the |
Later than I hoped but I have a PR open (#7656) for adding support to the RTDB SDK. Note: this was pretty lightly tested from a lifecycle standpoint in a very simple app and if you do plan on shipping this in your product, please do test it and file issues if you run into anything! I'll close this issue once the PR is merged. |
This has landed and will be included in the next release. Please give it a shot and file issues as you see them, and let us know on this thread if it works for you! |
Great news, thank you Ryan! |
Could you please add RealtimeDatabase support for WatchOS?
It's crucial because watch apps are independent now and we can't rely on "WatchConnectivity" due to it's limitations. Watch apps needs to get data from Firebase directly.
Thanks!
The text was updated successfully, but these errors were encountered: