Skip to content
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

Document how to add native Watch app #16417

Open
ivanicin opened this issue Oct 24, 2022 · 11 comments
Open

Document how to add native Watch app #16417

ivanicin opened this issue Oct 24, 2022 · 11 comments
Labels
documentation The issue or pull request is about documentation watchOS
Milestone

Comments

@ivanicin
Copy link

It seems to be possible to add the native Watch app to the Xamarin app but with 0 documentation. According to #16142 this is done using _ResolvedWatchAppReferences

Searching for this on the internet returned just that page, so it is not reasonable to think that anyone can do it.

On the other hand as noted here: #16120 , watchOS is not technically supported anymore since one month ago and I think it is reasonable not to ask for that fix from Microsoft as they don't have enough funds to support enough engineers to fix something like that (and you know that this is the fact).

Considering all of this it would be nice if you made some sample on how to do this. I have no expectations and I have Plan B, just it is really yours if you want developers to use Xamarin at all or not...

@dalexsoto dalexsoto added the documentation The issue or pull request is about documentation label Oct 24, 2022
@dalexsoto dalexsoto modified the milestones: Future, .NET 8 Oct 24, 2022
@dalexsoto
Copy link
Member

dalexsoto commented Oct 24, 2022

Hello!

Agreed, we need to document this better there are some good hints here #10070 (comment) we'll have a look at this in the future since watchOS is not currently supported in .NET 6/7

@beeradmoore
Copy link

Hey @ivanicin , this is something I have wanted to do and have some samples but nothing concrete. I have a repo with some notes and working samples here. I have wanted to improve this to make the process more clear, but both time and energy have not allowed that to happen.

@ivanicin
Copy link
Author

ivanicin commented Dec 5, 2022

@dalexsoto you may want to refer to the document by @vouksh https://codebloq.io/2022/12/02/xamarin-ios-with-swiftui-watchos-app/ if you are not to write your own document for Xamarin.iOS, it may not be at the level of your documentation (and is not intended to be) but it is very usable.

@EmilAlipiev
Copy link

So using SwiftUi is the only way to build WatchOS apps today? can we not create using Xamarin WatchOS like Objective-C style with Storyboards? I have tried default template but I am unable to deploy on WatchOS simulator through Ios App. Is it now completely broken? I have created a SO issue

@vouksh
Copy link

vouksh commented Jul 5, 2023

@EmilAlipiev Unfortunately, Microsoft has dropped support for watchOS. There's not enough of us to warrant the amount of work they'd need to keep up with the latest changes. If you're starting a new project, your best bet is to go with MAUI + Native (SwiftUI/Kotlin) Watch apps if you still want to stay in .NET. Otherwise your best bet is to go with a full native app. I'm working on making a demo Maui (Phone) + SwiftUI (Watch) app so that I can write up instructions on pairing those up.

@EmilAlipiev
Copy link

@vouksh thanks for your comment. It is clear for me that Maui is not supporting. I have xamarin app and i want to add watchos extension. I could achieve to use watchos with c# today. project is running on my simulator and watch. From my understanding still until May 2024, Xamarin will get updates. Will that actually makes sense to use it still if i want to get a quick watchos version and in 2024 convert into SwiftUi. Or is there anyone obstacles deploying a Xamarin.Ios.WatchOs with the latest Xcode?

@beeradmoore
Copy link

beeradmoore commented Jul 5, 2023

Xamarin will no longer get any Xcode major updates. So the current Xcode in beta will never be supported by Xamarin.

(Edit: just saw vouksh comments above, which is mostly the same as below, sorry for the double post)

The team have said the number of people using watchOS was very low, so not adding support was acceptable to focus on other things. tvOS may also have a very small user base but it also is very similar to iOS SDKs so there was not much effort required to add it, which can not be said for watchOS.

IMO I wouldn't hold my breath for watchOS support so I think the best way to build watchOS apps today is to build it natively and embed it into your MAUI iOS/net7-ios bundle.

@EmilAlipiev
Copy link

oh ok. "Xamarin will no longer get any Xcode major updates." i thought that they would still update us till next year May. thats of course game changer. too bad.

@beeradmoore
Copy link

See here for more info, but the main bit is

Xamarin support will end on May 1, 2024 for all Xamarin SDKs. Android 13 and Xcode 14 SDKs (iOS and iPadOS 16, macOS 13) will be the final versions Xamarin will target.

Xamarin will still be getting updates/bug fixes for its current things, but it won't ever target Android 14 or use Xcode 15 (iOS 17) SDKs.

@jerry2007
Copy link

@EmilAlipiev Unfortunately, Microsoft has dropped support for watchOS. There's not enough of us to warrant the amount of work they'd need to keep up with the latest changes. If you're starting a new project, your best bet is to go with MAUI + Native (SwiftUI/Kotlin) Watch apps if you still want to stay in .NET. Otherwise your best bet is to go with a full native app. I'm working on making a demo Maui (Phone) + SwiftUI (Watch) app so that I can write up instructions on pairing those up.

Can you publish working sample pls?

@vouksh
Copy link

vouksh commented Sep 11, 2023

I've thrown together a quick example from one of my test projects. MauiWithWatchApps
The Android watch app does not work yet, but this should provide a starting point for someone interested in this until I get through my current backlog enough to tackle any more examples.

@rolfbjarne rolfbjarne modified the milestones: .NET 8, .NET 9 Nov 9, 2023
@rolfbjarne rolfbjarne added this to Documentation in .NET 9 Nov 9, 2023
@rolfbjarne rolfbjarne modified the milestones: .NET 9, .NET 10 May 28, 2024
@rolfbjarne rolfbjarne removed this from Documentation in .NET 9 May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation The issue or pull request is about documentation watchOS
Projects
None yet
Development

No branches or pull requests

7 participants