Last post Feb 02, 2018 10:05 AM by Kesiya Abraham
Feb 01, 2018 11:58 AM|Kesiya Abraham|LINK
The server will be a web API in .Net and client is UWP app.There are some messages stored in the database along with the expiry time and deviceId.Each message should be broadcasted to the device on the expiration of time.How can we keep a persistent
connection from web API to UWP and how can we broadcast the message to a particular device.Thanks in advance for all suggestion!
Feb 01, 2018 12:17 PM|mgebhard|LINK
ASP has the SignalR framework which uses a persistent Web Socket connection to Web API.
Feb 01, 2018 12:36 PM|Kesiya Abraham|LINK
Is it supported by UWP app?Which method is better implementing push notification or this SIgnalR thing.Could you please suggest the best method for this requirement?
Feb 01, 2018 02:38 PM|mgebhard|LINK
Is it supported by UWP app?
Did you read the docs?
Which method is better implementing push notification or this SIgnalR thing
I have no idea how your app works or what you're requirements are. Does your application require a persistent connection or push notifications?
Could you please suggest the best method for this requirement?
You're asking the wrong audience. Ask your users or application owners how they expect the app to work. Next, research the technologies and come up with the best solution for the application.
Feb 01, 2018 02:58 PM|Kesiya Abraham|LINK
Feb 02, 2018 09:30 AM|Brando ZWZ|LINK
Hi Kesiya Abraham,
In my opinion, the singlar need continue running the application to connect to the server. So this is not a good choice in UWP.
I suggest you could consider azure notification hub.
It could push the notification to the device with the right tag.
More details about how to use Azure notification hub, you could refer to below article.
Feb 02, 2018 10:05 AM|Kesiya Abraham|LINK
Thank you for the comments.My requirement is, once an event happens on the server, the server should push a message to the specific device/user.From my understanding, SignalR will continuously check whether the event happened