-
Notifications
You must be signed in to change notification settings - Fork 511
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
Attaching a native watchOS app to a .NET app #20317
Comments
No, at the moment there's no official way to add a native watchOS app to a .NET project. We should figure out a way though; the example app you linked to seem to work by accident because we haven't removed the build logic to support watchOS apps yet (this is because most of the build code is shared between Xamarin.iOS and .NET, once we drop support for Xamarin.iOS we'll eventually want to remove non-.NET code). In any case you can use the method the sample app uses, we'll keep making that work until we implement a supported way of doing it. |
I'm tentatively marking this for .NET 9, but it's likely it won't get done until later. IMHO this would make sense to implement when we remove watchOS logic in our code base, which we probably won't do until after .NET 9. |
Adding a relevant link to the topic on how to do this, there is also this discussion on the topic as well dotnet/maui#1144 |
Thanks for the demo project MauiWithWatchApps Never mind. I figured out I have to add one line to the demo native watch app to initilate the WCSession. |
@liejuntao001 I have successfully added an app this way and used WCSession to send Data from the phone to the App. Althoiugh you probably figured out the issue already |
With watchOS being officially removed since .NET 6, we now have to do native watchOS apps (not an issue).
There is still the ability to create app extensions and those work fine, but how do I link in a native watchOS app?
I've looked through Microsoft docs without any luck. I've found this issue: #10070 and from that an example app: https://github.com/vouksh/MauiWithWatchApps
Is there something more "official" in terms of how to accomplish this?
@dalexsoto
--
See #16417.
The text was updated successfully, but these errors were encountered: