Skip to content

Document how to add native Watch app #16417

Closed

Description

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

Activity

  1. added
    documentation
    on Oct 24, 2022
  2. modified the milestones: Future, .NET 8 on Oct 24, 2022
  3. dalexsoto commented on Oct 24, 2022

    @dalexsoto
    Member

    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

  4. beeradmoore commented on Oct 29, 2022

    @beeradmoore

    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.

  5. EmilAlipiev commented on Jul 4, 2023

    @EmilAlipiev

    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

  6. vouksh commented on Jul 5, 2023

    @vouksh

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

  7. EmilAlipiev commented on Jul 5, 2023

    @EmilAlipiev

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

  8. beeradmoore commented on Jul 5, 2023

    @beeradmoore

    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.

  9. EmilAlipiev commented on Jul 5, 2023

    @EmilAlipiev

    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.

  10. beeradmoore commented on Jul 5, 2023

    @beeradmoore

    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.

  11. jerry2007 commented on Sep 11, 2023

    @jerry2007

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

  12. vouksh commented on Sep 11, 2023

    @vouksh

    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.

  13. modified the milestones: .NET 8, .NET 9 on Nov 9, 2023
  14. modified the milestones: .NET 9, .NET 10 on May 28, 2024
  15. rolfbjarne commented on Sep 26, 2024

    @rolfbjarne
    Member

    Closing as a duplicate of #20317.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationwatchOS

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions