Is it possible to send notifications(toast, tiles, raw) from a server and receive it from Windows Phone 8.1 not using Azure Account(Notification Hub). I saw examples using 8.1 silverlight but I could not implement within WP 8.1.
If yes, can you explain simply how, or suggest a document?
Yes it is possible you can create your own web service desktop app to do this.
Here is an article from MSDN that explains how...
https://msdn.microsoft.com/en-us/library/windows/desktop/hh868252.aspx
There are quite a few things you need to setup such as WNS etc.
It is not necessary to using Azure. You can implement your own notifications server but you should understand how it works first, it's a little bit complicated :) - there is an overview for WP8.1 (Windows Runtime).
In short:
Your server must be authenticated with Windows Notification Service (WNS): How to here
Your WP8.1 app must obtain notification channel (Uri) from Windows Notification Service (WNS) and send it to your server.
Your server should send REST request (POST) with special xml content to channel (Uri) received from your app (WNS mediates in communication).
In last step WP app handles notification.
More info about communication with WNS on your server side: https://msdn.microsoft.com/en-us/library/windows/apps/hh465435.aspx
It's your decision in which technology/platform you'll code it.
But there are several solutions provided by third-party push notifications providers. Eg. Parse - you can send some notifications for free. You'll avoid the problem of creating your own service.
Related
I don't know where to start, so let's start by saying what I want.
An application on my Phone which would control/send commands to my PC
I am not asking how to code it, I want to get a brief idea on what I need in order to do it. I had thought of using ASP .NET Core Web Application, but I am not sure if that's what I need, I need a server to be running on the PC, so that the phone will connect to and send commands to the PC Client from the Mobile Client.
Also, It needs to be C# since its the only language I am fluent in.
Which library should I use on the PC and the Mobile?
You can use ASP.NET Core to create a web service that is hosted on your PC. The application on your phone could send commands by sending HTTP requests to the web service.
For example, the web service could react to a request like:
POST http://localhost:8080/do-stuff
But the web service method is not the most performant one. If you put a priority on performance, you should rather work with sockets. You can use the .NET classes like in this example or use a library.
If you want to develop everything with C#, I would recommend using Xamarin for developing the mobile app.
I want to develop an app with VoIP and sip. I have found a good example from Microsoft sample is ChatterBox VoIP sample app
From this app we can receive or make audio or video call to some one.But I can not call to another number.
In this document VoIP apps for Windows Phone 8
the incoming call is possible through Microsoft Cloud server. It will push a notification to our phone.
I have also found some third party SIP clients for Windows Phone 8 like LinPhone and PJSIP but they are not providing how to use that thing
Now my questions are :
1) How can I integrate SIP client to this ChatterBox example or How can I call to another number?
2) Can it is possible to user other that Microsoft Cloud server means can I use my own server to push call to my app?
3) In ChatterBox example there is a default incoming call. How can I call from another to my number / my app ?
Thank You.
ChatterBox is just a framework for what a SIP App could be, it shows you Background Process code and also Scheduling Tasks and Push notifications.
If you want to be able to make SIP calls, you need to download the src code of a sip library like PJSIP which works very well.
Just run the code and call pjsua methods, they encapsulate the functionality quite well.
Well, I am not very good with c#.net thus I am really confused about the database that I should use. I am trying to build a windows phone app that can communicate with the SQL database that I have online. I have asked some people and they have suggested me to write an API for the database so that I can generate a JSON/XML data from it and use it in my windows phone app and other way around.
So, here are some of my questions:
1) Which Database should I use for my .net website so that my windows phone app can communicate with the database as well?
2) If I have a Database then should I make an API for it, so that I can help it send JSON data to the mobile app and receive it as well or is there any better option for this?
I couldn't find a proper answer for these questions anywhere. do let me know the best options available.
Thanks in advance!
The choice of database is completely yours and depends on the type of application you want. You must never access your database on the server from an application directly. Make necessary APIs to do that for you for security reasons.
Having said that, you can look at MongoDB if you are going to work with extensive JSON since it can store, retrieve and process JSON out of the box.
Other than that, any database can be used to serialize data to JSON and send it to your app. Like for example you can use MySQL, and the database adapters will help you return the results to your app in a JSON format.
You can use any database that suites your requirements of website, it will not effect your windows phone app because windows phone will communicate with API's(Web API is the best way) so for windows phone app it is transparent.
Yes, Create Web APIs at server side and call those APIs from mobile to send/receive data in JSON format this the standard and best way to send/receive data.
I would also suggest to store your server side data in windows phone local store(using SQLite or in json files). So that if mobile is not connected to internet your app can still work in offline mode and sync data when internet connection is available.
P:S. As you are developing new windows phone application than target windows phone 8.1(windows Runtime or Universal app) instead windows pone 8 as there are new features and improvements in it. and soon all windows phone 8 devices will upgraded to windows phone 8.1
I have a WCF service which exposes SOAP and REST endpoints and we have WPF,Android,Windows Phone(in future),ASP.NET applications on top of our WCF service, so many users can use many apps from different parts of the world.
Right now we have a big issues with the freshness of data we are using some old school polling techniques to look for the updated data, is there a way to create a system which push data to the connected apps regardless of the platform and location if any data update occurs on the server from any application.
I have already looked into the Duplex Callbacks but that is not possible with android and has some other limitations.i also know about the GCM for android but dont know how to make it working with other platforms apps.
GCM only works for Android devices. There are similar push notification services for Windows Phone and iOS. There are several solutions such as PushSharp and Windows Azure Mobile Services, which allow you to push notifications to several devices.
As for what to use the push notifications for. I strongly suggest not to use them to push data, as you cannot always be 100% sure if the notifications ever reach the device. Hence only use them to notify the client about new data is available, and then fetch it. Use push notifications along with polling.
It is not entirely clear what your application does, hence I do not know when and how often you need the new data. Just keep in mind that iOS for instance does not allow using a permanent background service, like Android and Windows Phone does, however the WP one does only allow for updates every 30 minutes.
I have a project wherein i have to create a windows mobile app which synchronize files between two windows phone, provided that the connectivity between two phone should be through WiFi.
Being new to this app development field , i have no idea on where to start and where to look. Is there any sample application present to sync data between two phones without involving any database. And what API should i use. i referred to some tutorials on this website.
This won't be possible without a server between both phones. Microsoft is very restrictive and won't let you access the WiFi connection. Actually you would have to use one of the phones as a WiFi hotspot and the other one as client and this is definitely not possible with an WP app.
I would recommend to write a Windows Service (have a look at WCF) which both phones connect to. This service would have to do all the work which would be:
Wait for phone requests to work with them
Handle the request when a phone wants to synchronize data
Let the second phone know that there are new data to receive
Transfer data to the second phone
Actually there will be more requirements for such a service (e.g. security) you will have to deal with.
Yet, there is a solution because Rudy Huyn connected several Windows phone using the connection Wifi without server http://www.youtube.com/watch?feature=player_embedded&v=rl0VHkoOHTA
But I don't know how..