Send notification to UWP app from remote server without cloud support - windows

How can I notify a UWP app from remote server? Is it possible with Windows notification service, I don't want implement with cloud service. Is there any possibility?

Yes, That's absolutely possible. The server-side component can be any cloud hosted service or it can be your own custom implementation and hosted somewhere on your on-prem servers.
You can create a simple service using https://learn.microsoft.com/en-us/previous-versions/windows/apps/hh868252(v=win.10) and host that on your remote server.

Related

Setting Up Windows Push Notification Services (WNS) Server Side

I'm trying to set up Windows Push Notification Services (WNS) for Windows server 2013. But I can't seem to find any documentation regarding this online, as most of it just explained more towards the client side.
Any guidance or reference is highly appreciated.
if you wanted to do push notification service for Windows, then you're correct that windows notification service is the right one. However it is a cloud notification service just like Apple Push Notification Service (APNS) or Google Cloud Messaging (GCM). However you can host your own service in Windows Server 2013 to talk to WNS. Otherwise you can use Azure Notification Hub which can integrate with your backend. So if you go for Azure Notification Hub, you will need to build a backend that talks to to Azure. Take a look at the link

web service calling from console app, web service unable to connect the azure database

we want to connect the Azure database by using console application. my application sheduled in system it has dynamic IP. so i have problem to connect Sql Azure.
then developed a webservice and hosted in windows azure and consumed the web service from console still we have same issue.
please suggest
If you know the IP range, you can allow the entire range on the database firewall. It's not very elegant but will work.

Windows phone 7 - how to connect to remote services

I want to connect to remote machine using windows phone 7.5. Is there any inbuilt classes in .net for this.
For regular desktop application same can be done using ServiceController class. I am looking for the similar class for windows phone application.
ServiceController is used to control state of services on local or remote machine.
WP apps don't have a way of controlling remote or local services.
You would have to write SOAP or REST API for managing services and then connect WP app to those, but do make sure it is secured properly - you don't want to give access to service control to everyone.

should back end service for windows phone push notificatin always be a cloud application?

I want to develop an application that makes use of MSPN service. Is it necessary that my backend service be a cloud service
There would be no way to determine if a service is a cloud service or not (without being anti-competitive), so you should be able to use any web service, whether it is implemented using a cloud service such as Azure or not - as I understand it, for certification, it would have to be a web service, and not rely on something being installed on a PC on a private network.
No you dont need it to be a Cloud-Service, you can even implement your Push-Service in PHP or similar. But that has Limits, it cannot run periodically a Script or sth like that. All Push-Notifications have to be send manually.
To do this you need 2 Core-Components(In my example in PHP).
You have a Page on which the Phone-Application can register his MSPN Push-Uri, which then is stored into the Database.
A Page which takes the Uri(s) and then sends the Push-Notification to them

wcf windows service interaction

I have a windows service in which i host a wcf service.
What is the best approach to control the windows service via the wcf service? I already created the interfaces for the wcf service, but I have no idea how to interact with the windows service's classes and functions.
just to check that I'm understanding your problem correctly - you want to run a wcf service, so you create a windows service to host it, and you want your desktop client to be able to control the windows service (that's hosting the wcf service) by talking to the wcf service?
If that's the case, what is it that you're trying to do with the windows service? In some of the work I've done, I've set up the server such that there's the windows service hosting all the wcf services I want to run, and in order to interact with that windows service remotely (e.g. starting/stopping/restarting) I have another service running on the server (usually baked into the Amazon instance image so it's running on every new server that gets brought up) which my remote client can talk to instead. That way I have a means to trigger a service restart on all my servers without having to manually connect/remote desktop to each server. Of course, the second wcf service is secured by some means so it can't be exploited easily.
Is that the sort of thing you're looking to do?

Resources