Worklight_HydribApp_PushNotification for Windows Phone 8 Using MPNS - windows-phone-8

Hi we have developed an application using IBM MobileFirst Studio 7.0.0,In order to send notifications for Android and IOS Platforms we used GCM and APNS respectively and everything worked fine coming to Windows Phone 8 application we are planning to go with MPNS(Microsoft Push Notification Services) concept.
As per MPNS is concerned we are planning to go with Authenticated push services which can give us unlimited access to send notifications, we require a Secure Sockets Layer (SSL) certificate keystore for the same.
The keystore can contain several certificates, one of which is the certificate for authenticated push notifications to MPNS.
To use MPNS concept we need certificate which is authenticated push notifications.
How to generate that certificate and do we need any web service to develop MPNS Push Notification for Windows Phone 8?
as part of my research followed this link.

In the link you have found, you will see how to generate a SSL Keystore and certificates - here. Once you have the certificates, login to Windows Development center and upload the certificate there. Instructions on how to do this can be found in the following links:
Setting up an authenticated web service
Enabling no-quota push notifications
No-quota push notifications

Related

Who to create web service for windows push notification for windows phone 8?

While working with Windows Phone Push Notifications, I got myself stuck in the part of creating the "cloud web service" to receive the negotiated URL and retrieve updates to the mobile device.Is it possible to create this Web Service without using Windows Azure services (I don't want to pay anything, I just want to push with my services to my apps)? And how can I create this Cloud Web Service.
I haven't worked extensively with Windows Phone 8.1. Check this webpage for Windows Phone 8 -
https://msdn.microsoft.com/en-us/library/windows/apps/hh202970%28v=vs.105%29.aspx
You will get a URL for each device you want to get notification on through the app you create. Taking help from the above link, you can create a local server (Cloud Web Service) for testing push notifications for your test devices.

Push Notification Windows Phone?

I'm a new Windows Phone developer and I'm trying create push notification. I don't understand much about push notification, and have a couple of questions.
Push notification windows phone need cloud service,so can I use Google Cloud Service or only use Microsoft Cloud Service.
How to register URI from the Microsoft Push Notification Service?
You will have only two options here:
1)MPNS
2)WNS
If you are using WP8 then I will suggest to go with MPNS o.w. you can use WNS.
you can use MPNS directly by sending notification URI to server but for WNS you will need to generate secrete key and need to use Azure service.
You can use these steps to create server and WP8 App, if you are using MPNS as you are using WP8.
And about GCM you can not use it here.

Windows Phone 8 and HTTPS/SSL

I need to connect to a web service via HTTPS in my windows phone 8.0 app. It seems that there is no client SSL support from Microsoft about this issue.
I really need to know how to deal with certificates in WP8. What is the correct certificate? Which certificates need to be imported?
Scenario: I have a https endpoint: https://10.1.1.2 and when I connect there from my PC I am being prompted to view and install the certificate of the server. The certificate name "The Root CA" is being saved locally. The same certificate is installed in the mobile device w/o problems. When I open the https://10.1.1.2 from the mobile internet explorer it informs me that the web page is secure and I have to choose between close and continue the page. I am clicking continue and the https://10.1.1.2 transaction takes place. Every time I go to the same URL via the mobile internet explorer there is no warning to the end user regarding security.
According to Microsoft: In most cases, you do not have to do anything
to enable this for your Windows Phone app with the exception of using
an address that begins with the https:// protocol scheme. Windows
Phone then examines the certificate that is returned by the web
service, and if the certificate is from one of the trusted authorities
listed in SSL root certificates for Windows Phone OS 7.1, the Windows
Phone app platform then uses the certificate in conjunction with the
web service to encrypt all further communication, including the
exchange of the authentication credentials as described previously.
Although you can install trusted certificates on the Windows Phone, in
the current release, the Windows Phone app platform does not expose
those certificates’ values to apps. As a result, in the current
release, you cannot implement mutual authentication scenarios –
scenarios in which the client sends its own certificates to the web
service in addition to receiving one -- using certificates installed
in the root store.
So, is this procedure OK? I cannot use one of the certificate authorities that Microsoft
trusts by default. Do I need code?
Self signed certificate cannot be used and it does not automatically fetch data without intervention.
First of all, when testing your SSL connection through mobile IE, it appears from my testing that by pressing continue you are adding an exception to IE, not installing any certificates or getting the exception to apply phone-wide.
Secondly, using self-signed certificates on WP8 appears to be severely limited by the fact that any cert chain that does not use a built-in root CA will generate a failed certificate validation in your code. See the MSDN blog entry at http://blogs.msdn.com/b/davidhardin/archive/2010/12/30/wp7-and-self-signed-ssl-certificates.aspx
Where he states "You can implement your own certificate authority using Microsoft Certificate Services but you’ll still need a certificate from one of the phone’s certificate authorities to chain your certificate authority to."
The only "solution" I've seen posted is to effectively ignore all certificate warnings - which is no solution at all.

Windows Phone Push Notifications without a web service

I'm planning to develop windows phone app which can send my PC clipboard to the phone. I want to use push notifications for this. I found this paragraph on the msdn windows phone documentation library
After your Windows Phone client app has registered for notifications, you can send notifications to the app. Typically, this is done with a web service that keeps a collection of URIs to send notifications to, but it also can be done with any app that can send messages to the Microsoft Push Notification Service.
This seems to imply that I don't need to set up a web service. Is there some way I can send push notifications directly from my app to MPNS?
Yes, your desktop app can communicate directly with MPNS.
Use the same code as for the web service.

Client certificate authentication in web service

We are working on an Windows Runtime and Windows Phone 8 application which connects to a server via web services.
I am wondering how I can add client authentication with certificates to the web service call, as ClientCertificate is not available on ClientCredentials for Windows Runtime/Windows Phone 8. See API: http://msdn.microsoft.com/en-us/library/system.servicemodel.description.clientcredentials.clientcertificate.aspx
Can anyone point me in the right direction how to add a client certificate to the call to our generated web service.
Regards Matoz
No Windows Phone 8 sdk does not support client certificate. Please see MSDN LINK for more details.