I want to develop an Companion App for the Samsung Galaxy Watch Active 2 using Visual Studio.
Up until now I set up the Project following this guide https://developer.samsung.com/galaxy-watch-develop/creating-your-first-app/net-companion/use-sap.html.
I integrated the code mentioned on the page into my project and replaced the “/sample/hello” parameter with my own serviceProfile id in
Agent = await Agent.GetAgent("/sample/hello");
But when I run the App, I get the following error for this line.
Samsung.Sap.SapException: .ctor failed. at Samsung.Sap.Agent..ctor(ProfileInfo profileInfo) at Samsung.Sap.Agent.GetAgent(String profile, IncomingConnectionCallback onConnect, IncomingFileTransferCallback onFileTransfer, IncomingMessageCallback onMessage) at tizen_doc2go_4_20.App.<Connect>d__3.MoveNext() in C:\PROJECT_PATH\App.cs:line 38
I can’t find any resources on what I’m doing wrong.
Any help would be highly appreciated.